Installing Curl for Perl (WWW :: Curl :: Easy) on Windows

I am running Strawberry Perl on Windows and should use WWW :: Curl :: Easy. But "Sorry, silent installation is not available on Windows."

There is README.Win32 in CPAN:

Installation on Windows need to be done manually, by editing Makefile.PL.

1. Specify your curl include directory on the line "my @include = qw()".
2. Specify the following parameters on the line below, where <DIR> is your curl directory like this:

my ($cflags,$ldflags,$lflags) = ('-I"<DIR>\\include"', '-L"<DIR>\\lib"','-lcurl -lcurldll');

<DIR> can be for example: "E:\\Perldev\\downloader\\curl-7.18.2-devel-mingw32" (without quotes);
3. Save Makefile.PL.
4. Execute "perl Makefile.PL";
5. Execute "nmake" ( you may need nmake from Mircosoft, which can be downloaded from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084 );
6. Execute "nmake install".

Unfortunately, I do not understand how I need it. I think it should be possible with dmake instead of nmake, right? What is meant by various "included directories"?

Steps taken so far:

  • Set Strawberry Perl
  • Download and extract libcurl using ssl (curl-7.40.0-devel-mingw32.zip)
  • Download and extract WWW :: Curl from CPAN
  • edit makefile.pl

    - # my @includes = qw();
    + my @includes = qw (C:\Strawberry\curl-7.40.0-devel-mingw32\include);
    - # my ($ cflags, $lflags, $ldflags) = ('', '', '');
    + my ($ cflags, $ldflags, $lflags) = ('-I "C:\Strawberry\curl-7.40.0-devel-mingw32\include" ', '-L "C:\Strawberry\curl-7.40. 0-devel-mingw32\lib" ',' - lcurl -lcurldll ');
    ...
    - # open (H_IN, "- |", "gcc $curl_h" );
    + open (H_IN, "| gcc $curl_h" );

  • edit curl.xs( )

-, , ?

! .

+4
1

:

dmake GNU make Microsoft nmake, nmake .

include- , $cflags, -I<DIR>\\include, @include, , README.Win32.

Makefile.PL, , @include $cflags , @include, $cflags, , .

@include , , curl /curl/curl.h, , perl.

- , , , curl.xs, ?

, , , LWP::Useragent, , - , WWW:Curl::Easy ..

, , .

.

0

All Articles