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

Package libzmq was not found #55

Closed
life0fun opened this issue Oct 14, 2011 · 3 comments
Closed

Package libzmq was not found #55

life0fun opened this issue Oct 14, 2011 · 3 comments

Comments

@life0fun
Copy link

Issue with npm install zmq.

libzmq was installed under /usr/local/lib,
/usr/local/lib/pkgconfig/libzmq.pc exists.
PKG_CONFIG_PATH sets to /usr/local/lib/pkgconfig

mac osx 10.5

npm install zeromq also could not find libzmq, but went through and everything worked.

@life0fun
Copy link
Author

problem solved!

  1. export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
  2. sudo visudo, add
    Defaults env_keep += "PKG_CONFIG_PATH"
  3. sudo npm install zmq -g

@ashearer
Copy link

Also reproduced on Lion (Mac OS X 10.7). Same solution as above, simplified to a one-liner:

sudo PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" npm install zmq -g

@nicerobot
Copy link

I had this error and it was due to my version of pkg-config installed by the Mono.framework didn't know about MacPorts' /opt/local/lib path. I simply removed Mono but another alternative similar to the PKG_CONFIG_PATH solution might be

PATH=/opt/local/bin:${PATH} npm install zmq

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