在Amazon EC2上安装RcppEigen [英] Installing RcppEigen on amazon ec2

查看:247
本文介绍了在Amazon EC2上安装RcppEigen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Amazon 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++.

这篇关于在Amazon EC2上安装RcppEigen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆