【发布时间】:2018-01-04 12:34:52
【问题描述】:
我安装了openssl,curl-7.57.0,选项--witt-ssl在centos6.4下启用https支持,设置
export CURL_CPPFLAGS=-I/usr/local/curl-7.57.0/include
export CURL_LIBS=-L/usr/local/curl-7.57.0/lib
并编译 R:
./configure --prefix=/usr/local/R-3.4.3 --enable-R-shlib
但是命令说 libcurl 不支持 https:
...
checking for curl-config... /usr/local/curl-7.57.0/bin/curl-config
checking libcurl version ... 7.57.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.22.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.22.0 library and headers are required with support for https
但是,命令curl-config --protocols 显示支持HTTPS:
DICT
FILE
FTP
FTPS
GOPHER
HTTP
HTTPS
IMAP
...
我参考了Installing R on Linux: configure: error: libcurl >= 7.28.0 library and headers are required with support for https并尝试安装libcurl4-openssl-dev,但似乎centos6.4没有这个lib。我该如何解决我的问题?
【问题讨论】: