小编use*_*195的帖子

在 Windows 上安装 Curl for Perl (WWW::Curl::Easy)

我在 Windows 上运行 Strawberry Perl,需要使用 WWW::Curl::Easy。但是“抱歉,Windows 上没有可用的自动安装”。

CPAN 上有一个 README.Win32:

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 …
Run Code Online (Sandbox Code Playgroud)

windows perl curl

5
推荐指数
1
解决办法
2069
查看次数

标签 统计

curl ×1

perl ×1

windows ×1