zeromq.node
zeromq.node copied to clipboard
Package libzmq was not found in the pkg-config search path
I've download zmq using "npm install zmq" but I got the following error:
Package libzmq was not found in the pkg-config search path.Perhaps you should add the directory containing `libzmq.pc' to the PKG_CONFIG_PATH environment variable No package 'libzmq' found gyp: Call to 'pkg-config libzmq --libs' returned exit status 1. while trying to load binding.gyp
I have put a work around in place as suggested from the error message - the software is working. However, I was wondering why the libzmq library couldn,t be found.
I have reloaded pkgconfiq ( via MacPorts ) and it is installed properly. I also checked the directory where libzmq is stored and it is at /usr/local/lib ( I installed the zeromq software from source ).
I am on Mac OS Mavericks, using Node v0.10.0, npm v1.2.17 and node-gyp v0.9.5
What other areas should I check ?
Grateful for any help.
i got the same error.. zmq installation in mac kind a headache.. but here's what i do..
- install zmq using brew : brew install zmq
- export PKG_CONFIG_PATH=/usr/local/Cellar/zeromq/4.0.4/lib/pkgconfig/
- sudo visudo and add Defaults env_keep += "PKG_CONFIG_PATH"
- sudo npm install zmq
Hope it help..
Didn't fixed my problem :(
manuels-mbp:~ manuellaufenberg$ npm install zmq
[email protected] install /Users/manuellaufenberg/node_modules/zmq node-gyp rebuild
Package libzmq was not found in the pkg-config search path. Perhaps you should add the directory containing `libzmq.pc' to the PKG_CONFIG_PATH environment variable No package 'libzmq' found gyp: Call to 'pkg-config libzmq --libs' returned exit status 1. while trying to load binding.gyp
Nvm - fixed it :) Your approach worked. Thanks! :+1:
Thanks @trihatmaja it help me.
@trihatmaja THX, it works!
@trihatmaja THX A million!!!
I did:
-
brew install zmq
- Added this line:
export PKG_CONFIG_PATH=/usr/local/Cellar/zeromq/4.x.x/lib/pkgconfig/
to ~/.profile - Restart terminals and run
npm install zmq
And this worked for me.
I had to update the permissions on /usr/local/share/man
so that brew install
could properly link everything. Then this worked.
I did:
- brew install zmq
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig to ~/.profile
- run sudo npm install zmq -g --unsafe-perm=true --allow-root
I've installed zmq with brew and the environmental variable is correct and verified and I still get the same subject error message. I have also installed it from the source and get the same thing.
@BUMPRW Try sudo npm install zmq -g --unsafe-perm=true --allow-root PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Sorry,
I should have got back on line and noted that was the solution. I had a series of NPM files that required that action.
Sincerely,
Richard Bump
On Feb 22, 2018, at 11:57 PM, aethn [email protected] wrote:
@BUMPRW https://github.com/bumprw Try sudo npm install zmq -g --unsafe-perm=true --allow-root PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JustinTulloss/zeromq.node/issues/283#issuecomment-367917806, or mute the thread https://github.com/notifications/unsubscribe-auth/ASW-jakOmXVmvutHEma2RVKdR6frbDOnks5tXlM4gaJpZM4BmCq-.
i got the same error.. zmq installation in mac kind a headache.. but here's what i do..
- install zmq using brew : brew install zmq
- export PKG_CONFIG_PATH=/usr/local/Cellar/zeromq/4.0.4/lib/pkgconfig/
- sudo visudo and add Defaults env_keep += "PKG_CONFIG_PATH"
- sudo npm install zmq
Hope it help..
I didn't need sudo
to install zmq
I had to be aware of latest version:
export PKG_CONFIG_PATH=/usr/local/Cellar/zeromq/4.3.1_1/lib/pkgconfig/