zeromq.node
zeromq.node copied to clipboard
Failed at the [email protected] install script 'node-gyp rebuild'
../binding.cc:1541: instantiated from here
../node_modules/nan/nan.h:1878: error: ?etFunction?was not declared in this scope
make: *** [Release/obj.target/zmq/binding.o] Error 1
make: Leaving directory /data/node_modules/zmq/build' gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/node-v4.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 2.6.32-573.7.1.el6.x86_64
gyp ERR! command "/opt/node-v4.1.0/bin/node" "/opt/node-v4.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/node_modules/zmq
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 2.6.32-573.7.1.el6.x86_64
npm ERR! argv "/opt/node-v4.1.0/bin/node" "/usr/bin/npm" "install" "zmq"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! 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 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! /data/npm-debug.log
You have to install pkg-config first, brew install pkg-config
then npm i zmq
I hope this will help :)
I am having the same issue on UBUNTU 16.04 on Node 4.4.4 and Node 6.
Same here on Centos.
Same on CentOS7 on [email protected] on Node v6.2, npm v3.8.9
npm ERR! Linux 3.10.0-327.10.1.el7.x86_64
...
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
...
npm ERR! Failed at the [email protected] 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,
Edit: nevermind - my issue was proxy related in node-gyp. Once resolved, 2.15.2 building fine on node 6.2.
Same issue with version 2.15.2 @mujimu how did you solve it? Could you please elaborate?
Actually I had another issue on Ubuntu 16.04, but I had to install this: https://launchpad.net/ubuntu/+source/zeromq3 As some file was missing.
The workaround I did was to issue a "make" command inside the node_modules/zmq folder. Please try that.
Same here on Ubuntu Trusty Tahr.. and it worked before it suddenly stopped working.
It seems that you havent yet updated the proper link to zmq on the npm registry. Every time I tried installing using npm install zmq, the package.json zmq link kept referring to zmq 2.14.0 instead of the latest one 2.15.3 . I also had to manuall install the repository.
If I try to do any subsequent npm installs it deletes the zmq module. and when I do npm list it says the specific module is invalid.
On Ubuntu 16.04
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.
Nevermind, works for me after install nodejs-legacy.
sudo apt install nodejs-legacy
hello, i had this problem
npm ERR! Linux 4.4.0-36-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "zmq" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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:
and apparently installing zmq on ubuntu by running these commands seemed to help
sudo apt-get install libtool pkg-config build-essential autoconf automake
sudo apt-get install libzmq-dev
from https://tuananh.org/2015/06/16/how-to-install-zeromq-on-ubuntu/
indeed installing zmq did the trick.
brew install zmq
this work for me on ubuntu 17.04 first, install pkg-config sudo apt-get install pkg-config after that install libzmq3 past following command wget https://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/Release.key -O- | sudo apt-key add sudo apt-get install libzmq3-dev finally, update packages sudo apt-get update hope it will work for you as well
You need to add "-" at the end of command installing GPG key!
sudo wget https://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/Release.key -O- | sudo apt-key add -
https://github.com/JustinTulloss/zeromq.node/issues/525#issuecomment-245441687
if above is not good for you and your env is Ubuntu 18.04, try:
sudo apt-get install libzmq3-dev
npm install -g zmq
Hi All. I have same this error while doing npm I
.
6 warnings and 1 error generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/angel/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/angel/.nvm/versions/node/v10.16.3/bin/node" "/Users/angel/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/angel/Project/Node/Jatatech/lfms_server/node_modules/zmq
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fs-ext):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp configure build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/zmq):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
audited 2569 packages in 8.08s
found 26 vulnerabilities (2 low, 2 moderate, 22 high)
run npm audit fix
to fix them, or npm audit
for details
OS: MacOs Mojave 10.14.3
Any help would be appreciated.
It was deprecation issue of nodejs and I have reverted nodejs version from 10.16.3 to 8.10.0 and finally npm install is green.
same with @LuckyGStar, here OS is macOS
, final solution is downgrade node
version from v13.5.0
to v8.17.0, can fix this issue.