1

我似乎无法安装 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,一些研究似乎暗示这可能是问题所在。

4

2 回答 2

4

仔细看:

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

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

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

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

于 2014-04-29T04:21:02.073 回答
1

帮助过我。

sudo apt-get install aptitude
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libxml2-dev
于 2017-04-27T06:04:24.823 回答