嘿,我尝试使用以下命令安装漩涡:
install.packages("swirl")
我收到以下错误:
------------------------- ANTICONF ERROR ------------------------- --
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
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=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/RCurl’
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘RCurl’ are not available for package ‘swirl’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/swirl’
Warning in install.packages :
installation of package ‘swirl’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp7G87EM/downloaded_packages’
我尝试安装“curl”和“RCurl”软件包,但是我收到了相同的错误消息。我不知道如何按照ANTICONF ERROR中的指示更改路径。
我正在运行Ubuntu 15.04和R版本3.1.2(2014-10-31)
答案 0 :(得分:2)
现在它
sudo apt-get install libcurl4-gnutls-dev
答案 1 :(得分:0)
于30-05-2019更新: 我正在使用Ubuntu 16.04
我在安装软件包时得到了这个- 使用PKG_CFLAGS =
------------------------- ANTICONF错误-------------------- -------
配置失败,因为未找到openssl。尝试安装:* deb:libssl-dev(Debian,Ubuntu等)* rpm:openssl-devel(Fedora, CentOS,RHEL)* csw:libssl_dev(Solaris)* brew:openssl@1.1(Mac OSX)如果已安装openssl,请检查是否已在其中安装了“ pkg-config” 您的PATH和PKG_CONFIG_PATH包含一个openssl.pc文件。如果 pkg-config不可用,您可以手动设置INCLUDE_DIR和LIB_DIR 通过:R CMD安装--configure-vars ='INCLUDE_DIR = ... LIB_DIR = ...'
我在终端>中使用了命令
sudo apt-get install libssl-dev
然后工作正常。