由于编译错误,我无法安装此 R 包。我试试
install.packages("devtools")
并收到
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/7/../../../libcurl.so when searching for -lcurl
/usr/bin/ld: skipping incompatible //lib/libcurl.so when searching for -lcurl
/usr/bin/ld: skipping incompatible //usr/lib/libcurl.so when searching for -lcurl
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/make/shlib.mk:6: curl.so] Error 1
ERROR: compilation failed for package ‘curl’
* removing ‘/home/laur/R/x86_64-redhat-linux-gnu-library/3.4/curl’
在线搜索发现通过安装 libcurl-devel 已经解决了类似的问题,但它没有帮助我,我现在有多个 32 位和 64 位版本:
sudo dnf -y install libcurl libcurl-devel
返回
Package libcurl-7.55.1-9.fc27.x86_64 is already installed, skipping.
Package libcurl-7.55.1-10.fc27.i686 is already installed, skipping.
Package libcurl-devel-7.55.1-10.fc27.i686 is already installed, skipping.
我也尝试安装 curl-config,但找不到。