我试图在Amazon 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完美安装...。)
最佳答案
看起来像是“简单”的内存不足问题。
C ++可能会如此苛刻,而复杂的模板代码(Eigen肯定会这样)需要更多的资源。只需尝试分配更多的内存-否则很难杀死g++
。