我正在尝试安装R-3.4.1并收到以下错误:
checking for curl-config... /home/menglan.xiang/usr/bin/curl-config
checking libcurl version ... 7.55.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.22.0... no
configure: error: libcurl >= 7.22.0 library and headers are required with support for https
configure: WARNING: cache variable ac_cv_env_PKG_CONFIG_PATH_value contains a newline
尝试了Stack Overflow上的几乎所有解决方案,但没有任何效果。已成功安装curl并启用了openssl。这是configure命令:
export CPPFLAGS='-I/$HOME/usr/include/curl'
export LDFLAGS='-L/$HOME/usr/lib/'
./configure --prefix=$HOME --with-x=no
有人能帮助我吗?
答案 0 :(得分:0)
尝试
$ export C_INCLUDE_PATH=/$HOME/usr/include/
$ export LD_LIBRARY_PATH=/$HOME/usr/lib/
$ export PKG_CONFIG_PATH=/$HOME/usr/lib/pkgconfig/
如果未正确检测到curl-config
,请同时添加:
$ export PATH=$HOME/usr/bin:$PATH
有关记录
在我的multiarch Ubuntu机器上,我libcurl
中有一个剩余的/usr/local/
,它实际上要求我这样做:
$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
$ export C_INCLUDE_PATH=/usr/include/
$ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/lib
$ export PATH=/usr/bin:$PATH