在亚马逊ec2上安装RcppEigen

时间:2013-05-15 23:21:12

标签: r amazon-ec2 rcpp

我尝试在亚马逊EC2上安装RcppEigen(在t1.micro上安装  确保它有效)& ubuntu 13.04。我尝试了两个R版本是2.15.2和3.0,32位ubuntu和64位ubuntu。任何时候我得到以下内容:

root@ip-10-224-4-239:/home/ubuntu# R CMD INSTALL RcppEigen_0.3.1.2.1.tar.gz
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RcppEigen’ ...
** package ‘RcppEigen’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -O2 -pipe -g  -c RcppEigen.cpp -o RcppEigen.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/local/lib/R/site-library/Rcpp/include"  -I../inst/include -fpic  -O2 -pipe -g  -c fastLm.cpp -o fastLm.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [fastLm.o] Error 4
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/usr/local/lib/R/site-library/RcppEigen’

任何人都知道如何让RcppEigen在EC2上运行? (Rcpp安装完美......)

1 个答案:

答案 0 :(得分:11)

这看起来像是一个“简单”的内存不足问题。

C ++可能要求很高,复杂的模板代码(Eigen肯定是)需要更多的资源。只需尝试分配更多内存 - 否则很难杀死g++