Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

installing node.js v0.8.1 via nvm fails

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/
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
make[1]: *** [/home/ubuntu/.nvm/src/node-    v0.8.1/out/Release/] 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

Problem courtesy of: japrescott


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..

Solution courtesy of: japrescott


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

installing node.js v0.8.1 via nvm fails


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription