zeromq.node icon indicating copy to clipboard operation
zeromq.node copied to clipboard

Failed at the [email protected] install script 'node-gyp rebuild'

Open hwcer opened this issue 8 years ago • 18 comments

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

hwcer avatar May 13 '16 06:05 hwcer

You have to install pkg-config first, brew install pkg-config then npm i zmq I hope this will help :)

obouchari avatar May 16 '16 17:05 obouchari

I am having the same issue on UBUNTU 16.04 on Node 4.4.4 and Node 6.

garyld1962 avatar May 20 '16 21:05 garyld1962

Same here on Centos.

ziazon avatar May 24 '16 05:05 ziazon

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.

mujimu avatar May 24 '16 17:05 mujimu

Same issue with version 2.15.2 @mujimu how did you solve it? Could you please elaborate?

swateek avatar May 31 '16 11:05 swateek

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.

levino avatar Jun 21 '16 15:06 levino

The workaround I did was to issue a "make" command inside the node_modules/zmq folder. Please try that.

swateek avatar Jun 21 '16 17:06 swateek

Same here on Ubuntu Trusty Tahr.. and it worked before it suddenly stopped working.

its2mc avatar Jul 28 '16 02:07 its2mc

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.

its2mc avatar Jul 28 '16 03:07 its2mc

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

Kabloc avatar Aug 26 '16 14:08 Kabloc

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/

rbtLong avatar Sep 07 '16 22:09 rbtLong

indeed installing zmq did the trick. brew install zmq

hems avatar May 07 '17 18:05 hems

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

waqasfactor avatar May 24 '18 06:05 waqasfactor

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 -

vrogojin avatar Jul 23 '18 14:07 vrogojin

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

flyq avatar Sep 08 '18 03:09 flyq

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.

LuckyGStar avatar Oct 02 '19 00:10 LuckyGStar

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.

LuckyGStar avatar Oct 11 '19 05:10 LuckyGStar

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.

crifan avatar Dec 27 '19 10:12 crifan