由于 curl 编译失败,无法在 Fedora 27 的 R v3.4.3 中安装 devtools
Unable to install devtools in R v3.4.3 in Fedora 27 due to curl compilation failed
由于编译错误,我无法安装此 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
returns
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,但是找不到。
我无法在 Fedora 27 上重现您的错误。但是,这也许会有所帮助:
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
来自 ANTICONF ERROR
条消息 here。
编辑:与您的错误消息无关,但请确保您也 运行 sudo dnf -y install openssl-devel gnutls-devel
/usr/bin/ld: skipping incompatible //usr/lib/libcurl.so when searching
for -lcurl
/usr/bin/ld: cannot find -lcurl
您缺少 64 位版本。 # dnf install libcurl-devel.x86_64
libcurl-devel.x86_64 提供:/usr/bin/curl-config :64bit, /usr/lib64/libcurl.so, /usr/lib64/pkgconfig/libcurl.pc
由于编译错误,我无法安装此 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
returns
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,但是找不到。
我无法在 Fedora 27 上重现您的错误。但是,这也许会有所帮助:
If libcurl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
来自 ANTICONF ERROR
条消息 here。
编辑:与您的错误消息无关,但请确保您也 运行 sudo dnf -y install openssl-devel gnutls-devel
/usr/bin/ld: skipping incompatible //usr/lib/libcurl.so when searching for -lcurl
/usr/bin/ld: cannot find -lcurl
您缺少 64 位版本。 # dnf install libcurl-devel.x86_64
libcurl-devel.x86_64 提供:/usr/bin/curl-config :64bit, /usr/lib64/libcurl.so, /usr/lib64/pkgconfig/libcurl.pc