Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

fatal error: zmq.h: No such file or directory (ubuntu 12.04, node 0.10.26) #281

Open
jcollum-hcg opened this issue Feb 19, 2014 · 3 comments

Comments

@jcollum-hcg
Copy link

Installed ZMQ via the instructions here: http://zeromq.org/intro:get-the-software

Then installed ZMQ via npm install zmq. Results:

> node-gyp rebuild

make: Entering directory `/home/xyz/app-build-0.60/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
compilation terminated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
make: Leaving directory `/home/xyz/app-build-0.60/node_modules/zmq/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/hcg/.nvm/v0.10.26/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.11.0-15-generic
gyp ERR! command "node" "/home/hcg/.nvm/v0.10.26/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/xyz/app-build-0.60/node_modules/zmq
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2

Can I test whether zmq is working? There is no make test target for it.

@jcollum-hcg
Copy link
Author

Looks like sudo make install is required to use ZMQ with node. The docs for ZMQ imply that that is optional.

Zeromq.node should be doing some sort of check to see if ZMQ is available system-wide and give a better error message (while installing).

@andronat
Copy link

I had the same problem with Centos 6.5.

I installed the yum install zeromq-devel and worked.

@shakdwipeea
Copy link

For ubuntu this worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants