node.js - Error installing zmq Node Module -
when installing zmq node module, next error. have latest stable version of node installed.
i running mac on os x 10.9.3
npm http https://registry.npmjs.org/zmq npm http 304 https://registry.npmjs.org/zmq npm http https://registry.npmjs.org/nan npm http https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/bindings > zmq@2.7.0 install /users/mario/node_modules/zmq > node-gyp rebuild /bin/sh: pkg-config: command not found gyp: phone call 'pkg-config libzmq --libs' returned exit status 127. while trying load binding.gyp gyp err! configure error gyp err! stack error: `gyp` failed exit code: 1 gyp err! stack @ childprocess.oncpexit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp err! stack @ childprocess.emit (events.js:98:17) gyp err! stack @ process.childprocess._handle.onexit (child_process.js:809:12) gyp err! scheme darwin 13.2.0 gyp err! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp err! cwd /users/mario/node_modules/zmq gyp err! node -v v0.10.29 gyp err! node-gyp -v v0.13.0 gyp err! not ok npm err! zmq@2.7.0 install: `node-gyp rebuild` npm err! exit status 1 npm err! npm err! failed @ zmq@2.7.0 install script. npm err! problem zmq package, npm err! not npm itself. npm err! tell author fails on system: npm err! node-gyp rebuild npm err! can info via: npm err! npm owner ls zmq npm err! there additional logging output above. npm err! scheme darwin 13.2.0 npm err! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "zmq" npm err! cwd /users/mario/messaging npm err! node -v v0.10.29 npm err! npm -v 1.4.9 npm err! code elifecycle npm err! npm err! additional logging details can found in: npm err! /users/mario/messaging/npm-debug.log npm err! not ok code 0
why error , should prepare it?
looks need install pkg-config
:
/bin/sh: pkg-config: command not found
try brew install pkg-config
node.js zeromq
No comments:
Post a Comment