Hi all,
I have some troubles when trying to execute this command: npm install zmq (on Ubuntu server) but get following error:
npm install zmq
npm http GET https://registry.npmjs.org/zmq
npm http 304 https://registry.npmjs.org/zmq
z...@2.1.0 install /home/tiniplanet/pubsub/node_modules/zmq
node-gyp rebuild
info it worked if it ends with ok
spawn python [ '/home/tiniplanet/.node-gyp/0.8.1/tools/gyp_addon',
'binding.gyp',
'-I/home/tiniplanet/pubsub/node_modules/zmq/build/config.gypi',
'-f',
'make' ]
spawn make [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /home/tiniplanet/pubsub/node_modules/zmq/build'/home/tiniplanet/pubsub/node_modules/zmq/build'
CXX(target) Release/obj.target/binding/binding.o
../binding.cc:29:17: fatal error: zmq.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/binding/binding.o] Error 1
make: Leaving directory
ERR! Error: make failed with exit code: 2
at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:212:23)
at ChildProcess.EventEmitter.emit (events.js:91:17)
at Process._handle.onexit (child_process.js:674:10)
ERR! not ok
npm ERR! z...@2.1.0 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the z...@2.1.0 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!
npm ERR! System Linux 3.2.0-26-generic-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! cwd /home/tiniplanet/pubsub
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.24
npm ERR! code ELIFECYCLE
npm ERR! message z...@2.1.0 install: node-gyp rebuild
npm ERR! message sh "-c" "node-gyp rebuild" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/tiniplanet/pubsub/npm-debug.log
npm not ok
I also installed node-gyp module by doing: npm install -g node-gyp successfully.
Appreciate any suggestion/help.
@I have same topic but in WINDOWS platform before, a friend here shared me zmq node module working in windows platform(it runs but I cannot build on window before), today I tried again with npm install zmq on windows and surprising it works well (can build the module, maybe zmq module author made some modifications :-?)
../binding.cc:29:17: fatal error: zmq.h: No such file or directory
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Hi mscdex,Tried to run npm install libzmq libzmq-dev but seems those modules did not exist in node module repository.
D:\NodeJS_Examples\pubsub\node_modules>npm install libzmq-devnpm http GET https://registry.npmjs.org/libzmq-devnpm http 404 https://registry.npmjs.org/libzmq-devnpm ERR! 404 'libzmq-dev' is not in the npm registry.npm ERR! 404 You should bug the author to publish itnpm ERR! 404npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, or http url, or git url.
On Mon, Jul 16, 2012 at 10:37 AM, mscdex <msc...@gmail.com> wrote:
On Sunday, July 15, 2012 11:02:44 PM UTC-4, hd nguyen wrote:
../binding.cc:29:17: fatal error: zmq.h: No such file or directory
Looks like you don't have libzmq and/or libzmq-dev installed.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Installed libzmq-dev successfully: sudo apt-get libzmq-devTried to run again: npm install zmqbut still got the same error.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
But I do have a concern why I cannot install it via npm install zmq merely?Anything I'm missing here?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Do you have zmq module author know about this issue and suggest your fix? I think it helps prevent different users from posting the same question as mine in case they get stuck in it.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en