I downloaded http://www.gknw.net/mirror/curl/win32/curl-7.18.2-devel-mingw32.zip. (It's the "libcurl" link for Win32 at http://curl.haxx.se/download.html.)
Then I unzipped to C:\curl and added C:\curl\curl-7.18.2-devel-mingw32\bin to my path.

Next, downloaded the WWW::Curl-4.04 source from CPAN and extracted it to my usual build directory.
First up, in the Makefile.PL, I commented out the line requires_external_bin    'curl-config'; and added C:/curl/curl-7.18.2-devel-mingw32/include to @includes (as you had also done). Then it was a matter of running:
perl Makefile.PL INC="-IC:/curl/curl-7.18.2-devel-mingw32/include" LIB +S="-LC:/curl/curl-7.18.2-devel-mingw32/lib -lcurldll"
followed by dmake test and dmake install A couple of the tests failed - but hopefully that's good enough for your purposes. The full build output can be viewed below my sig.

Update: The build I've done is a dynamic build. The libcurl binaries that I downloaded also included a static libcurl lib (libcurl.a), and it should be possible to build against that static lib instead of the dynamic lib. That should be achievable by replacing -lcurldll with -lcurl at the end of the above "Perl Makefile...." command. But I couldn't get that to work - I got about 30 errors relating to linking to libcurl of the type:
Curl.o:Curl.c:(.text+0x30ce): undefined reference to `_imp__curl_easy_ +init'
I think that's telling me that it's insisting on building against the dynamic lib. (I don't know why that is so - and I haven't gone looking for the answer.)

Cheers,
Rob
C:\_32\comp\WWW-Curl-4.04>perl Makefile.PL INC="-IC:/curl/curl-7.18.2- +devel-mingw32/include" LIBS="-LC:/curl/curl-7.18.2-devel-mingw32/lib +-lcurldll" Set up gcc environment - 3.4.5 (mingw32 special) 'curl-config' is not recognized as an internal or external command, operable program or batch file. 'curl-config' is not recognized as an internal or external command, operable program or batch file. 'curl-config' is not recognized as an internal or external command, operable program or batch file. version is Found curl.h in C:/curl/curl-7.18.2-devel-mingw32/include/c +url/curl.h Building curlopt-constants.c for your libcurl version Building Easy.pm constants for your libcurl version Building Share.pm constants for your libcurl version Checking if your kit is complete... Looks good Writing Makefile for WWW::Curl C:\_32\comp\WWW-Curl-4.04>dmake test Math::BigInt: couldn't load specified math lib(s), fallback to Math::B +igInt::Fas tCalc at C:/_32/ap1003/lib/Win32API/File.pm line 20 cp lib/WWW/Curl/Share.pm blib\lib\WWW\Curl\Share.pm AutoSplitting blib\lib\WWW\Curl\Share.pm (blib\lib\auto\WWW\Curl\Share +) cp lib/WWW/Curl/Form.pm blib\lib\WWW\Curl\Form.pm cp lib/WWW/Curl.pm blib\lib\WWW\Curl.pm cp lib/WWW/Curl/Easy.pm blib\lib\WWW\Curl\Easy.pm AutoSplitting blib\lib\WWW\Curl\Easy.pm (blib\lib\auto\WWW\Curl\Easy) cp lib/WWW/Curl/Multi.pm blib\lib\WWW\Curl\Multi.pm C:\_32\ap1003\bin\perl.exe "-Iinc" C:\_32\ap1003\lib\ExtUtils\xsubpp +-typemap C :\_32\ap1003\lib\ExtUtils\typemap -typemap typemap Curl.xs > Curl.xsc + && C:\_32 \ap1003\bin\perl.exe "-Iinc" -MExtUtils::Command -e mv Curl.xsc Curl.c gcc -c -IC:/curl/curl-7.18.2-devel-mingw32/include -DNDEBUG -DWIN +32 -D_CONS OLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_I +N_INC -DPE RL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_REA +DFIX -DHAS ATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 -DVERSION=\" +4.04\" -DXS_VERSION=\"4.04\" "-IC:\_32\ap1003\lib\CORE" Curl.c Running Mkbootstrap for WWW::Curl () C:\_32\ap1003\bin\perl.exe "-Iinc" -MExtUtils::Command -e chmod 644 Cu +rl.bs C:\_32\ap1003\bin\perl.exe "-Iinc" -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"WWW::Curl\", 'DLBASE' => 'Curl', 'DL_FUN +CS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" Set up gcc environment - 3.4.5 (mingw32 special) dlltool --def Curl.def --output-exp dll.exp g++ -o blib\arch\auto\WWW\Curl\Curl.dll -Wl,--base-file -Wl,dll.base - +mdll -L"C: \_32\ap1003\lib\CORE" Curl.o -Wl,--image-base,0x6d110000 C:\_32\ap100 +3\lib\CORE \perl510.lib C:\curl\curl-7.18.2-devel-mingw32\lib\libcurldll.a C:\_32 +\mingw\lib \libkernel32.a C:\_32\mingw\lib\libuser32.a C:\_32\mingw\lib\libgdi32. +a C:\_32\m ingw\lib\libwinspool.a C:\_32\mingw\lib\libcomdlg32.a C:\_32\mingw\lib +\libadvapi 32.a C:\_32\mingw\lib\libshell32.a C:\_32\mingw\lib\libole32.a C:\_32\ +mingw\lib\ liboleaut32.a C:\_32\mingw\lib\libnetapi32.a C:\_32\mingw\lib\libuuid. +a C:\_32\m ingw\lib\libws2_32.a C:\_32\mingw\lib\libmpr.a C:\_32\mingw\lib\libwin +mm.a C:\_3 2\mingw\lib\libversion.a C:\_32\mingw\lib\libodbc32.a C:\_32\mingw\lib +\libodbccp 32.a C:\_32\mingw\lib\libmsvcrt.a dll.exp dlltool --def Curl.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\WWW\Curl\Curl.dll -mdll -L"C:\_32\ap1003\lib\COR +E" Curl.o -Wl,--image-base,0x6d110000 C:\_32\ap1003\lib\CORE\perl510.lib C:\cur +l\curl-7.1 8.2-devel-mingw32\lib\libcurldll.a C:\_32\mingw\lib\libkernel32.a C:\_ +32\mingw\l ib\libuser32.a C:\_32\mingw\lib\libgdi32.a C:\_32\mingw\lib\libwinspoo +l.a C:\_32 \mingw\lib\libcomdlg32.a C:\_32\mingw\lib\libadvapi32.a C:\_32\mingw\l +ib\libshel l32.a C:\_32\mingw\lib\libole32.a C:\_32\mingw\lib\liboleaut32.a C:\_3 +2\mingw\li b\libnetapi32.a C:\_32\mingw\lib\libuuid.a C:\_32\mingw\lib\libws2_32. +a C:\_32\m ingw\lib\libmpr.a C:\_32\mingw\lib\libwinmm.a C:\_32\mingw\lib\libvers +ion.a C:\_ 32\mingw\lib\libodbc32.a C:\_32\mingw\lib\libodbccp32.a C:\_32\mingw\l +ib\libmsvc rt.a dll.exp C:\_32\ap1003\bin\perl.exe "-Iinc" -MExtUtils::Command -e chmod 755 bl +ib\arch\au to\WWW\Curl\Curl.dll C:\_32\ap1003\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp Curl.bs b +lib\arch\a uto\WWW\Curl\Curl.bs C:\_32\ap1003\bin\perl.exe "-Iinc" -MExtUtils::Command -e chmod 644 bl +ib\arch\au to\WWW\Curl\Curl.bs C:\_32\ap1003\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harnes +s(0, 'inc' , 'blib\lib', 'blib\arch')" t/*.t t/00constants.............ok t/01basic.................ok t/02callbacks.............ok t/04abort-test............ok t/05progress..............ok t/06http-post.............skipped all skipped: Not performing http POST/upload tests t/07ftp-upload............skipped all skipped: Not performing ftp upload tests t/08ssl...................ok t/09times.................ok t/10errbuf................ok t/13slowleak..............skipped all skipped: Not performing slow leakage regression test t/14duphandle.............dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 11-17 Failed 7/17 tests, 58.82% okay t/15duphandle-callback....ok 15/25semi-panic: attempt to dup freed str +ing at t/1 5duphandle-callback.t line 86 (#1) (S internal) The internal newSVsv() routine was called to duplicat +e a scalar that had previously been marked as free. Undefined subroutine &main:: called at t/15duphandle-callback.t line 8 +6. # Looks like you planned 25 tests but only ran 18. # Looks like your test died just after 18. t/15duphandle-callback....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 19-25 Failed 7/25 tests, 72.00% okay t/16formpost..............skipped all skipped: Not performing POST t/17slist.................skipped all skipped: Not performing printenv cgi tests t/18twinhandles...........ok t/meta....................skipped all skipped: Test::CPAN::Meta required for testing META.yml t/pod-coverage............skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD + coverage t/pod.....................skipped all skipped: Test::Pod 1.14 required for testing POD Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/14duphandle.t 5 1280 17 14 11-17 t/15duphandle-callback.t 255 65280 25 14 19-25 8 tests skipped. Failed 2/19 test scripts. 14/152 subtests failed. Files=19, Tests=152, 244 wallclock secs ( 0.00 cusr + 0.00 csys = 0. +00 CPU) Failed 2/19 test programs. 14/152 subtests failed. dmake: Error code 255, while making 'test_dynamic'

In reply to Re^6: Install WWW::Curl by syphilis
in thread Install WWW::Curl by jai_dgl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.