Closed majimboo closed 9 years ago
plus 1, here is the full trace for the error. zmq@2.7.0 + node v0.10.26 + ubuntu 14.04
> zmq@2.7.0 install /home/ubuntu/ubismart/node_modules/zerorpc/node_modules/zmq
> node-gyp rebuild
make: Entering directory `/home/ubuntu/ubismart/node_modules/zerorpc/node_modules/zmq/build'
CXX(target) Release/obj.target/zmq/binding.o
../binding.cc:28:17: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^
compilation terminated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
make: Leaving directory `/home/ubuntu/ubismart/node_modules/zerorpc/node_modules/zmq/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/ubismart/node_modules/zerorpc/node_modules/zmq
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Solved it by looking a bit at zmq's wiki. Basically, to install zmq (and thus zerorpc) you need a prior installation of libzmq and libpgm sources. It goes like this for Ubuntu.
sudo add-apt-repository ppa:chris-lea/zeromq
sudo add-apt-repository ppa:chris-lea/libpgm
sudo apt-get update
sudo apt-get install libzmq3-dev
Maybe it would be good to add this somewhere in the README (or I just missed it then sorry)?
Thanks for posting your solution! Had the same issue. Documentation should probably be updated to make this clear.
Running into an error here, has anyone seen this?
root@networkdawn:/usr/local/bin/zeromq-3.2.4# sudo apt-get install libzmq3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: libzmq3-dev : Depends: libzmq3 (= 4.0.4-1chl1~saucy1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Installation of zeromq-devel should avoid the problem for CentOS 6.