简体   繁体   中英

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;

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. Python is forced to python2 and libssl-dev is the newest on a ubuntu11.10. Does anybody have any advice? Thank you

I created a swapfile on my ec2 instance and voilà, compilation worked. Thanks Alan Curry for the memory hint. Was surprised that there wasn't any swap to start with..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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