简体   繁体   English

EC2 Rstudio软件包安装

[英]EC2 Rstudio Package Install

I am trying to install the R package Rcurl on EC2 我正在尝试在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’

The download unexpectedly failed for some reason, is there a fix? 下载由于某种原因意外失败,是否有修复程序? Am I doing something wrong? 难道我做错了什么? I am doing all this on the Rstudio UI on EC2. 我正在EC2的Rstudio UI上完成所有这些工作。

Thanks 谢谢

您需要安装libcurl-dev才能具有curl-config。安装后,请尝试在命令行中键入curl-config ,看看它是否显示任何帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM