简体   繁体   English

通过nvm安装node.js v0.8.1失败

[英]installing node.js v0.8.1 via nvm fails

While installing node 0.8.1 via nvm (newest from git) I get an error, that doesn't make any sense for me; 通过nvm(最新的git)安装节点0.8.1时,我收到一个错误,这对我没有任何意义;

CXX(target) /home/ubuntu/.nvm/src/node-v0.8.1/out/Release/obj.target/v8_base/deps/v8/src/checks.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.6/README.Bugs> for instructions.
make[1]: *** [/home/ubuntu/.nvm/src/node-    v0.8.1/out/Release/obj.target/v8_base/deps/v8/src/api.o] Error 4
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/ubuntu/.nvm/src/node-v0.8.1/out'
make: *** [node] Error 2
nvm: install v0.8.1 failed!

all previous installs with 0.6.18 were successful. 所有以前安装的0.6.18都是成功的。 Python is forced to python2 and libssl-dev is the newest on a ubuntu11.10. Python被迫使用python2而libssl-dev是ubuntu11.10的最新版本。 Does anybody have any advice? 有人有什么建议吗? Thank you 谢谢

I created a swapfile on my ec2 instance and voilà, compilation worked. 我在我的ec2实例上创建了一个交换文件 ,并且编译工作。 Thanks Alan Curry for the memory hint. 感谢Alan Curry的内存提示。 Was surprised that there wasn't any swap to start with.. 很惊讶,没有任何交换开始..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM