无法安装WWW :: Curl :: Easy:SZBALINT/WWW-Curl-4.17.tar.gz:否 [英] Failed to install WWW::Curl::Easy: SZBALINT/WWW-Curl-4.17.tar.gz : make NO

查看:72
本文介绍了无法安装WWW :: Curl :: Easy:SZBALINT/WWW-Curl-4.17.tar.gz:否的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Fedora 26机器上安装WWW :: Curl :: Easy

I am trying to install WWW::Curl::Easy on my Fedora 26 machine

gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"4.17\" -DXS_VERSION=\"4.17\" -fPIC "-I/usr/lib64/perl5/CORE"   Curl.c
Curl.xs: In function ‘fwrite_wrapper2’:
Curl.xs:363:13: warning: unused variable ‘sv’ [-Wunused-variable]
         SV *sv;
             ^~
In file included from Curl.xs:574:0:
curlopt-constants.c: In function ‘constant’:
curlopt-constants.c:19:58: warning: ‘return’ with no value, in function returning non-void
             if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS;
                                                          ^~~~~~
curlopt-constants.c:2:1: note: declared here
 constant(const char *name)
 ^~~~~~~~
curlopt-constants.c:130:49: error: ‘CURL_STRICTER’ undeclared (first use in this function); did you mean ‘PMf_STRICT’?
             if (strEQ(name, "STRICTER")) return CURL_STRICTER;
                                                 ^~~~~~~~~~~~~
                                                 PMf_STRICT
curlopt-constants.c:130:49: note: each undeclared identifier is reported only once for each function it appears in
curlopt-constants.c:2077:44: warning: overflow in implicit constant conversion [-Woverflow]
             if (strEQ(name, "ANY")) return CURLAUTH_ANY;
                                            ^~~~~~~~~~~~
curlopt-constants.c:2078:48: warning: overflow in implicit constant conversion [-Woverflow]
             if (strEQ(name, "ANYSAFE")) return CURLAUTH_ANYSAFE;
                                                ^~~~~~~~~~~~~~~~

完整输出

我已经安装了 curl curl-config curl-devel .我已经尝试过在类似问题上发现的所有建议,但无法使它起作用.任何想法表示赞赏.

I have curl, curl-config and curl-devel installed. I have tried all suggestions I found on similar problems, but I can't get this to work. Any ideas appreciated.

推荐答案

好的,这就是我的工作方式:该错误与 CURL_STRICTER 有关,在 MAKEFILE.pl .我发现了此错误

Okay, this is how I got it to work: The error was related to CURL_STRICTER, it was missing in a line of MAKEFILE.pl. I found this bug and this patch, so I downloaded the WWW-Curl-4.17.tar.gz and extracted it, and changed the following line according to the patch:

if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {

看起来像

if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z)/) {

之后,我根据随附的自述文件安装了它,并且可以正常工作.

After that I installed it according to the included README and it worked.

这篇关于无法安装WWW :: Curl :: Easy:SZBALINT/WWW-Curl-4.17.tar.gz:否的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆