Installing issue
pwichmann opened this issue ยท 6 comments
I have spent about 6 hours trying to get zerorpc installed but I cannot get past the following error message:
root@lem-nodejs-512mb:/var/www/lem_nodejs/nodejs# npm install zerorpc
> zmq@2.15.3 install /var/www/lem_nodejs/nodejs/node_modules/zmq
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/var/www/lem_nodejs/nodejs/node_modules/zmq/build'
CXX(target) Release/obj.target/zmq/binding.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-5/README.Bugs> for instructions.
zmq.target.mk:94: recipe for target 'Release/obj.target/zmq/binding.o' failed
make: *** [Release/obj.target/zmq/binding.o] Error 4
make: Leaving directory '/var/www/lem_nodejs/nodejs/node_modules/zmq/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/root/.nvm/versions/node/v6.9.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-59-generic
gyp ERR! command "/root/.nvm/versions/node/v6.9.2/bin/node" "/root/.nvm/versions/node/v6.9.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/lem_nodejs/nodejs/node_modules/zmq
gyp ERR! node -v v6.9.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN lem@0.0.1 No repository field.
npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/root/.nvm/versions/node/v6.9.2/bin/node" "/root/.nvm/versions/node/v6.9.2/bin/npm" "install" "zerorpc"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! zmq@2.15.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zmq 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 information on how to open an issue for this project with:
npm ERR! npm bugs zmq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/lem_nodejs/nodejs/npm-debug.log
Any ideas what I am doing wrong?
System:
- Node: v6.9.2
- Ubuntu: LTS 16.04
EDIT: I updated this issue for improved clarity.
Apparently, gcc is crashing and asks you to send a full bug report to the gcc developers.
What is the output of g++ --version
on your system?
Thanks for replying, bombela.
The output is:
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
EDIT: I think this website might have helped me: http://askubuntu.com/questions/618474/how-to-install-the-latest-gcurrently-5-1-in-ubuntucurrently-14-04
I just managed to install it, and will check it now.
EDIT2: Maybe not.
Error: Could not locate the bindings file. Tried:
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/build/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/build/Debug/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/build/Release/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/out/Debug/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/Debug/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/out/Release/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/Release/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/build/default/zmq.node
โ /var/www/lem_nodejs/nodejs/node_modules/zmq/compiled/6.9.4/linux/x64/zmq.node
at bindings (/var/www/lem_nodejs/nodejs/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/var/www/lem_nodejs/nodejs/node_modules/zmq/lib/index.js:6:30)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/lem_nodejs/nodejs/node_modules/zmq/index.js:2:18)
EDIT3: Then tried to install apparently missing zmq:
sudo npm install zmq --save
This failed. With gcc error.
EDIT4:
Now upgrading to g++ version 6.
EDIT5:
Now trying to install zerorpc returns an error again:
root@lem-nodejs-512mb:/var/www/lem_nodejs/nodejs# npm install zerorpc
npm WARN deprecated node-uuid@1.3.3: use uuid module instead
> zmq@2.15.3 install /var/www/lem_nodejs/nodejs/node_modules/zmq
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/var/www/lem_nodejs/nodejs/node_modules/zmq/build'
CXX(target) Release/obj.target/zmq/binding.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-5/README.Bugs> for instructions.
zmq.target.mk:94: recipe for target 'Release/obj.target/zmq/binding.o' failed
make: *** [Release/obj.target/zmq/binding.o] Error 4
make: Leaving directory '/var/www/lem_nodejs/nodejs/node_modules/zmq/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/root/.nvm/versions/node/v6.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-59-generic
gyp ERR! command "/root/.nvm/versions/node/v6.9.4/bin/node" "/root/.nvm/versions/node/v6.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/lem_nodejs/nodejs/node_modules/zmq
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN lem@0.0.1 No repository field.
npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/root/.nvm/versions/node/v6.9.4/bin/node" "/root/.nvm/versions/node/v6.9.4/bin/npm" "install" "zerorpc"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! zmq@2.15.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zmq 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 information on how to open an issue for this project with:
npm ERR! npm bugs zmq
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/lem_nodejs/nodejs/npm-debug.log
I wish I knew what I am doing.
I have g++ (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
and I just rebuilt zerorpc-node without trouble (Ubuntu 16.10).
Maybe its a matters of updating/reinstalling gcc?
Thank you.
I have no idea what I am doing wrong.
I found the problem.
You were right. It was a matter of updating gcc to version 6.
This script here helped:
https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91
I am sorry for the trouble. And many thanks to you for your help and work!
Interesting, thank you for reporting your results!