R,install.packages('devtools')错误

时间:2014-04-29 04:15:14

标签: r package devtools install.packages

我似乎无法安装devtools。我总是收到这条消息(最后):

  * 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/vapri/R/x86_64-pc-linux-gnu-library/3.0/RCurl’
  Warning in install.packages :
    installation of package ‘RCurl’ had non-zero exit status
  ERROR: dependency ‘RCurl’ is not available for package ‘httr’
  * removing ‘/home/vapri/R/x86_64-pc-linux-gnu-library/3.0/httr’
  Warning in install.packages :
    installation of package ‘httr’ had non-zero exit status
  ERROR: dependencies ‘httr’, ‘RCurl’ are not available for package ‘devtools’
  * removing ‘/home/vapri/R/x86_64-pc-linux-gnu-library/3.0/devtools’
  Warning in install.packages :
    installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpqLDAb0/downloaded_packages’

有人能告诉我什么事吗? 我使用的是Ubuntu 14.04,一些研究似乎暗示可能是问题。

2 个答案:

答案 0 :(得分:4)

仔细观察:

 checking for curl-config... no
  Cannot find curl-config

您需要curl-config脚本。一般来说,您需要一个包libcurl*-dev或类似的包,并且发行版之间的aming可能会有所不同。在我输入的系统上:

edd@max:~$ dpkg -S `which curl-config`
libcurl4-nss-dev: /usr/bin/curl-config
edd@max:~$ 

但我还在其他一些系统上使用了替代libcurl4-gnutls-dev,以及libcurl4-openssl-dev

答案 1 :(得分:0)

帮帮我。

sudo apt-get install aptitude
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libxml2-dev