在ActivePerl上编译WWW :: Curl [英] Compiling WWW::Curl on ActivePerl
问题描述
我正试图(拼命地)将WWW :: Curl的最新版本构建/安装到我的activeperl框上(稍后我将解释为什么不使用PPM)
I'm trying (desperately) to build / install the newest version of WWW::Curl onto my activeperl box (I'll explain in a moment why I don't use the PPM)
我必须按照此处的说明进行一些修改: http://cpansearch.perl.org/src/SZBALINT/WWW -Curl-4.15/README.Win32
I had to make some modifications as per the instructions found here: http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/README.Win32
我还必须更改以下行:
发件人:
open(H_IN, "-|" "gcc", "$curl_h") and $has_cpp++;
收件人:
open(H_IN, "gcc $curl_h") and $has_cpp++;
我终于让perl Makefile.PL可以工作了,但是现在,当我运行nmake时,我得到了以下信息:
I finally got perl Makefile.PL to work but now, when I run nmake, I get the following:
Missing right curly or square bracket at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
NMAKE: fatal error U1077: 'C;|windows\system32\cmd.exe' : return code '0xff'
Stop.
现在,我之所以尝试编译它而不是使用u.winnipeg提供的PPM的原因是,因为该PPM似乎不支持SSL事务(我得到"libcurl:ssl disable")任何人都可以向我展示如何使ssl在此PPM上运行,我非常乐于使用它.
Now, the reason I'm trying to compile this rather than using the PPM supplied by u.winnipeg is because the that PPM doesn't seem to support SSL transaction (I get "libcurl: ssl disabled") Now, if anyone can show me how to get ssl to run on this PPM, I'm more than happy to use it.
非常感谢您
推荐答案
好吧,感谢大家的回应,我终于明白了.我不得不改变很多事情.
Well, I finally figured it out, thanks to everyone who responded. There were a bunch of things I had to change.
使用 http://cpansearch.perl.org/src /SZBALINT/WWW-Curl-4.15/README.Win32 作为指南:
像我上面所做的那样,打开的cmd正常工作.但是,我确实使用了ikegami,reinierpost和mob返回的建议.
The open cmd as I did above worked fine. However, I did use the advice returned by ikegami, reinierpost, and mob.
使用nmake/n(根据套接字木偶的建议),打印出所有正在执行的perl语句.我将输出结果放入一个.bat文件中,并更正了perl语法.
Using nmake /n (as advised by socket puppet), it printed out all of the perl statements which were being executed. I took this output and placed it into a .bat file and corrected the perl syntax.
我更改了
pm_to_blib({{@ARGV}
到
pm_to_blib({@ARGV}
(令人不安的是这些被退回了)
(it is disturbing these were returned)
然后,我必须将libcurl库链接到实例化g ++的每一行,但它们未正确链接.添加完这些参考之后,其他所有操作都顺利进行.
Then, I had to link the libcurl libraries to each line instantiating g++, which were not linked correctly. After I added these references, everything else went smoothly.
这些已添加:
C:\lc\curl\lib\libcurl.a C:\lc\curl\lib\libcurldll.a
现在,WWW :: Curl很高兴在我的系统上运行.
Now, WWW::Curl is happily running on my system.
至于使用PPM版本,正是因为我必须升级SSL. WWW :: Curl的最新版本是4.15,ppm版本是(我相信)3.02.
As for using the PPM version, it is exactly because of SSL I had to upgrade. The newest version of WWW::Curl is 4.15 the ppm version is (I believe) 3.02.
这篇关于在ActivePerl上编译WWW :: Curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!