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

Failed at the [email protected] install script.

Open jadams74 opened this issue 10 years ago • 5 comments

I am having issues with ‘npm install zmq’. Rebuild node-gyp is failing?

DNVCOML-6E8G3QC:ch4 uadamje$ npm install zmq
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
/
> [email protected] install /Users/uadamje/projects/nodejs_rightway/ch4/node_modules/zmq
> node-gyp rebuild

/bin/sh: pkg-config: command not found
gyp: Call to 'pkg-config libzmq --libs' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
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 Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/uadamje/projects/nodejs_rightway/ch4/node_modules/zmq
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
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! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! cwd /Users/uadamje/projects/nodejs_rightway/ch4
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/uadamje/projects/nodejs_rightway/ch4/npm-debug.log
npm ERR! not ok code 0

jadams74 avatar Sep 09 '14 21:09 jadams74

do you have zeromq (libzmq) on your system?

reqshark avatar Sep 22 '14 18:09 reqshark

yes

dheeraj09 avatar Nov 07 '14 09:11 dheeraj09

brew install pkg-config

kkoopa avatar Nov 07 '14 15:11 kkoopa

I'm getting the same error on windows...

arnoutaertgeerts avatar Dec 16 '14 10:12 arnoutaertgeerts

I had an install problem with "Rebuild node-gyp" and kkoopa's fix solved it for me. Thanks kkoopa!

brew install pkg-config

mvagnoni avatar Feb 05 '15 20:02 mvagnoni