开发者

Installing WWW::Curl on WIndows 7, running into "List form of pipe open not implemented"

开发者 https://www.devze.com 2023-02-19 05:37 出处:网络
Trying to install WWW:Curl on Windows.So far I\'ve done all of the following as per this page: http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/README.Win32

Trying to install WWW:Curl on Windows. So far I've done all of the following as per this page:

http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/README.Win32

I am in th开发者_JAVA技巧e process of modifying Makefile.PL, but when it tries to run cpp (I changed to gcc), I get the following error:

List form of pipe open not implemented at Makefile.PL

It happens on this line of code:

open(H_IN, "-|", "gcc", $curl_h   # where curl.h is the complete path to my curl.h file.

Any ideas?


Use the scalar expression form of pipe open?

open(H_IN, "-|", "gcc $curl_h");

open(H_IN, "|gcc $curl_h");

This is safe enough if $curl_h doesn't have any whitespace, quotation marks, or wildcards.

0

精彩评论

暂无评论...
验证码 换一张
取 消