Build error
rumkin opened this issue · 1 comments
rumkin commented
Ubuntu 10.04 node 0.10.30. Installation failed with:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/vagrant/.node-gyp/0.10.30"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/weak/.node-gyp"
make: Entering directory `/usr/lib/node_modules/weak/build'
CXX(target) Release/obj.target/weakref/src/weakref.o
make: g++: Command not found
make: *** [Release/obj.target/weakref/src/weakref.o] Error 127
make: Leaving directory `/usr/lib/node_modules/weak/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 2.6.32-38-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/weak
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! weak@0.3.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the weak@0.3.3 install script.
npm ERR! This is most likely a problem with the weak package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls weak
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-38-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "weak"
npm ERR! cwd /vagrant/projects/test
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/projects/test/npm-debug.log
npm ERR! not ok code 0
TooTallNate commented
make: g++: Command not found
That's the main error. You need to install gcc and friends.