我正在运行 13.10 AWS 实例,上面有闪亮的服务器。我已经成功地将各种软件包安装到 R 版本 3.0.3 和 r-base-dev 中,但我正在努力安装 dplyr 和 RCurl。
* installing *source* package ‘shiny’ ...
* DONE (shiny)
> library(shiny)
>
但是当我尝试安装 dplyr
ubuntu@ip-172-31-8-162:/$ sudo su - \
> -c "R -e \"install.packages('dplyr', repos='http://cran.rstudio.com/')\""
R version 3.0.3 (2014-03-06) -- "Warm Puppy"
> install.packages('dplyr', repos='http://cran.rstudio.com/')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘assertthat’, ‘BH’
* installing *source* package ‘assertthat’ ...
* DONE (assertthat)
* installing *source* package ‘BH’ ...
* DONE (BH)
* installing *source* package ‘dplyr’ ...
** package ‘dplyr’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I"/usr/local/lib/R/site- library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include" -fpic -O3 -pipe -g -c RcppExports.cpp -o RcppExports.o
xg++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make: *** [RcppExports.o] Error 4
ERROR: compilation failed for package ‘dplyr’
* removing ‘/usr/local/lib/R/site-library/dplyr’
当我尝试手动时
> install.packages("dplyr", repos="/home/ubuntu/dplyr_0.1.3.tar.gz")
Installing package into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
Warning: unable to access index for repository /home/ubuntu/dplyr_0.1.3.tar.gz/src/contrib
Warning message:
package 'dplyr' is not available (for R version 3.0.3)
当我解包 dplyr
> install.packages("dplyr", repos="/home/ubuntu/dplyr")
Installing package into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
Warning: unable to access index for repository /home/ubuntu/dplyr/src/contrib
Warning message:
package 'dplyr' is not available (for R version 3.0.3)
我也有 RCurl 的问题,curl 安装在 Ubuntu 上
> ubuntu@ip-172-31-8-162:/$ sudo su -\ -c "R -e \"install.packages('RCurl', repos='http://cran.rstudio.com/')\""
R version 3.0.3 (2014-03-06) -- "Warm Puppy"
> install.packages('RCurl', repos='http://cran.rstudio.com/')
Installing package into ‘/usr/local/lib/R/site-library’
* 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 ‘/usr/local/lib/R/site-library/RCurl’
Warning message:
In install.packages("RCurl", repos = "http://cran.rstudio.com/") :
installation of package ‘RCurl’ had non-zero exit status
在手动安装时,与 dplyr 相同的错误。
我究竟做错了什么?我该如何解决这个问题?我还尝试在 AWS 上运行 Rstudio 实例,但它们只有不支持 dplyr 的 R 3.0.1。