我正在尝试在EC2上安装R包Rcurl
> install.packages("RCurl")
Installing package(s) into ‘/home/mike/R/x86_64-pc-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.1.tar.gz'
Content type 'application/x-gzip' length 870915 bytes (850 Kb)
opened URL
==================================================
downloaded 850 Kb
* 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/mike/R/x86_64-pc-linux-gnu-library/2.14/RCurl’
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status
The downloaded packages are in
‘/tmp/Rtmpt1JmNj/downloaded_packages’
由于某种原因下载意外失败,是否有修复?难道我做错了什么?我正在EC2上的Rstudio UI上完成所有这些工作。
由于
答案 0 :(得分:1)
您需要安装libcurl-dev
才能拥有curl-config。安装完成后,尝试在命令行中输入curl-config
,看看它是否显示任何帮助。