in reply to Re^4: Install WWW::Curl
in thread Install WWW::Curl

Hi Rob, I modified MakeFile.PL like this
#requires_external_bin 'curl-config'; curl.h # Confirm I'm correct here ?
And added the path of the
C:\Curl\include in @includes in the same file.
I'm Using MinGW, Active perl 5.10 V OS is WinXP I have this error
Set up gcc environment - 3.2.3 (mingw special 20030504-1)
'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\include\/curl/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 Writing Makefile for WWW::Curl
Thanks, Jey

Replies are listed 'Best First'.
Re^6: Install WWW::Curl
by syphilis (Archbishop) on Jun 25, 2008 at 01:59 UTC
    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
      Hi, I'm Facing the following issue can anyone figure out this
      Can't load 'C:/Perl/site/lib/auto/WWW/Curl/Curl.dll' for module WWW::C +url: load_file:The specified procedure could not be found at C:/Perl/ +lib/DynaLoader.pm line 201. at C:/Perl/site/lib/WWW/Curl.pm line 11
      Thanks, Jey
        You're missing some dll a required by WWW/Curl/Curl.dll, like libcurl.dll ... is it installed? in the %path%?