在亚马逊 ec2 上安装 RcppEigen [英] Installing RcppEigen on amazon ec2
问题描述
我尝试在亚马逊 EC2 上安装 RcppEigen(在 t1.micro 上确保它有效) &Ubuntu 13.04.我尝试了两个 R 版本是 2.15.2 和 3.0,32 位 ubuntu 和 64 位 ubuntu.任何时候我得到以下信息:
I tried to install RcppEigen on amazon EC2 (on a t1.micro to make sure It works) & ubuntu 13.04. I tried with both R version was 2.15.2 and 3.0, 32bit ubuntu and 64bit ubuntu. Any time I got the following:
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 安装完美....)
Anyone has an idea on how to get RcppEigen to run on EC2? (Rcpp installs flawlessly....)
推荐答案
这看起来像是一个简单"的内存不足问题.
That looks like a "simple" out of memory issue.
C++ 可能要求很高,而复杂的模板代码(Eigen 肯定是)需要更多资源.只需尝试分配更多内存——否则很难杀死 g++
.
C++ can be demanding as is, and complex template code (which Eigen surely is) demands even more resources. Simply try allocating more memory -- otherwise it is hard to kill g++
.
这篇关于在亚马逊 ec2 上安装 RcppEigen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!