Package libzmq was not found #55

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

3 participants

@life0fun

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

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
@life0fun life0fun closed this Oct 23, 2011
@ashearer

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

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 join this conversation on GitHub. Already have an account? Sign in to comment