New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed at the zmq@2.15.1 install script 'node-gyp rebuild' #525

Open
hwclegend opened this Issue May 13, 2016 · 15 comments

Comments

Projects
None yet
@hwclegend
Copy link

hwclegend commented May 13, 2016

../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! zmq@2.15.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.1 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

@hwclegend hwclegend changed the title Error: `make` failed with exit code: 2 Failed at the zmq@2.15.1 install script 'node-gyp rebuild' May 13, 2016

@obouchari

This comment has been minimized.

Copy link

obouchari commented May 16, 2016

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

@garyld1962

This comment has been minimized.

Copy link

garyld1962 commented May 20, 2016

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

@jubairsaidi

This comment has been minimized.

Copy link

jubairsaidi commented May 24, 2016

Same here on Centos.

@mujimu

This comment has been minimized.

Copy link

mujimu commented May 24, 2016

Same on CentOS7 on zmq@2.15.2 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 zmq@2.15.2 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.

@swateek

This comment has been minimized.

Copy link

swateek commented May 31, 2016

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

@Levino

This comment has been minimized.

Copy link

Levino commented Jun 21, 2016

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.

@swateek

This comment has been minimized.

Copy link

swateek commented Jun 21, 2016

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

@its2mc

This comment has been minimized.

Copy link

its2mc commented Jul 28, 2016

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

@its2mc

This comment has been minimized.

Copy link

its2mc commented Jul 28, 2016

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.

@Kabloc

This comment has been minimized.

Copy link

Kabloc commented Aug 26, 2016

On Ubuntu 16.04

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.      

Nevermind, works for me after install nodejs-legacy.
sudo apt install nodejs-legacy

@rbtLong

This comment has been minimized.

Copy link

rbtLong commented Sep 7, 2016

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! 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:

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/

@hems

This comment has been minimized.

Copy link

hems commented May 7, 2017

indeed installing zmq did the trick.
brew install zmq

@vekkii

This comment has been minimized.

Copy link

vekkii commented May 24, 2018

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

@vrogojin

This comment has been minimized.

Copy link

vrogojin commented Jul 23, 2018

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 -

@flyq

This comment has been minimized.

Copy link

flyq commented Sep 8, 2018

#525 (comment)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment