配置:错误:libcurl >= 7.28.0 库和头文件需要支持 https

Jun*_*Jun 5 libraries centos header-file curl

嗨,当我尝试配置 R 安装时遇到了一个问题。基本上,我尝试按照我以前的安装过程进行操作,(出于某种原因,我需要在 CentOS6 而不是 CentOS5 中重新安装相同的 R)

./configure --prefix=$HOME/Programme/R-3.3.2 --enable-R-shlib LDFLAGS="-L/$HOME/Programme/zlib-1.2.11/lib -L/$HOME/Programme/ bzip2-1.0.6/lib -L/$HOME/Programme/xz-5.2.3/lib -L/$HOME/Programme/pcre-8.40/lib -L/$HOME/Programme/curl-7.47.1/lib " CPPFLAGS="-I/$HOME/Programme/zlib-1.2.11/include -I/$HOME/Programme/bzip2-1.0.6/include -I/$HOME/Programme/xz-5.2.3/include - I/$HOME/Programme/pcre-8.40/include -I/$HOME/Programme/curl-7.47.1/include"

配置退出,因为:

...
checking for curl-config... /u32/myusername/Programme/curl-7.52.1/bin//curl-config
checking libcurl version ... 7.52.1
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Run Code Online (Sandbox Code Playgroud)

注意到有人用过,“7.47.1”似乎对他/她有用,所以安装了“7.47.1”,但没有用。 http://pj.freefaculty.org/blog/?p=315

checking for curl-config... /u32/myusername/Programme/curl-7.47.1/bin//curl-config
checking libcurl version ... 7.47.1
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Run Code Online (Sandbox Code Playgroud)

注意到有人建议安装“libcurl-devel” ./config 返回 libcurl 错误 所以我下载了:ftp : //fr2.rpmfind.net/linux/centos/6.8/os/x86_64/Packages/libcurl-devel-7.19.7 -52.el6.x86_64.rpm 已安装并为其设置 PATH。

checking for curl-config... /u32/myusername/Programme/libcurl-devel/usr/bin/curl-config
checking libcurl version ... 7.19.7
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Run Code Online (Sandbox Code Playgroud)

注意到“检查 libcurl 版本 ... 7.19.7”我推测“libcurl-devel”可能太旧了。所以我安装了“libcurl-devel-7.29.0-35.el7.centos.x86_64.rpm”(这是针对CentOS7的,我找不到CentOS6版本)

checking for curl-config... /u32/myusername/Programme/libcurl_devel/usr/bin//curl-config
checking libcurl version ... 7.29.0
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Run Code Online (Sandbox Code Playgroud)

有什么建议吗?

小智 0

我有和你类似的问题。真正的错误消息位于您的 config.log 文件中。找出并尝试解决它。就我而言,我更改了 gcc 的另一个版本来解决该问题。