JustinTulloss/zeromq.node — Issue #91: Installation fails on Mac OSX lion
Author: santosh79
Created: 2012-02-20 01:57:14+00:00
State: open

I've been getting the following stacktrace while trying to install the zmq npm module. Appreciate it if someone can tell me what I am doing wrong, thanks.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-bash-3.2$ npm install zmq
npm http GET https://registry.npmjs.org/zmq
npm http 304 https://registry.npmjs.org/zmq

> zmq@2.0.1 preinstall /Users/santosh79/codez/zmq_test/node_modules/zmq
> node-waf clean || (exit 0); node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to : /Users/santosh79/codez/zmq_test/node_modules/zmq
Setting blddir to : /Users/santosh79/codez/zmq_test/node_modules/zmq/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for pkg-config version >= 0.0.0 : pkg-config was not found
/Users/santosh79/codez/zmq_test/node_modules/zmq/wscript:14: error: the configuration failed (see '/Users/santosh79/codez/zmq_test/node_modules/zmq/build/config.log')
npm ERR! error installing zmq@2.0.1

npm ERR! zmq@2.0.1 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the zmq@2.0.1 preinstall script.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! cwd /Users/santosh79/codez/zmq_test
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message zmq@2.0.1 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! message `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/santosh79/codez/zmq_test/npm-debug.log
npm not ok
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------