JustinTulloss / zeromq.node

Node.js bindings to the zeromq library
MIT License
1.65k stars 284 forks source link

No build on MacOSX (snow leopard) #123

Open hugdubois opened 12 years ago

hugdubois commented 12 years ago

Hi,

When i try to install zeromq.node with npm, i have an error.

$ npm install zmq $ npm install https://github.com/mscdex/zeromq.node/tarball/master ----> same issue

My config is : CPU: quad-core 64-bit sandybridge MacOS: 10.6.8-x86_64 - snow leopard Xcode: 4.2 GCC: 4.2.1 Npm: 1.1.43 Node: v0.8.2

npm-debug.log is :

0 info it worked if it ends with ok 1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'zmq' ] 2 info using npm@1.1.43 3 info using node@v0.8.2 4 verbose node symlink /usr/local/bin/node 5 verbose config file /Users/hug/.npmrc 6 verbose config file /usr/local/etc/npmrc 7 verbose config file /usr/local/lib/node_modules/npm/npmrc 8 verbose read json /Users/hug/Temp/zmq/node/package.json 9 verbose read json /Users/hug/Temp/zmq/node/nodemodules/hiredis/package.json 10 warn package.json hiredis@0.1.14 No README.md file found! 11 verbose read json /Users/hug/Temp/zmq/node/package.json 12 verbose cache add [ 'zmq', null ] 13 silly cache add name=undefined spec="zmq" args=["zmq",null] 14 verbose parsed url { pathname: 'zmq', path: 'zmq', href: 'zmq' } 15 silly lockFile 87107de2-zmq zmq 16 verbose lock zmq /Users/hug/.npm/87107de2-zmq.lock 17 silly lockFile 87107de2-zmq zmq 18 verbose addNamed [ 'zmq', '' ] 19 verbose addNamed [ null, '' ] 20 silly lockFile 6227fbd7-zmq zmq@ 21 verbose lock zmq@ /Users/hug/.npm/6227fbd7-zmq.lock 22 silly addNameRange { name: 'zmq', range: '', hasData: false } 23 verbose url raw zmq 24 verbose url resolving [ 'https://registry.npmjs.org/', './zmq' ] 25 verbose url resolved https://registry.npmjs.org/zmq 26 info retry registry request attempt 1 at 18:40:04 27 verbose etag "5OB0C3UXNGJ3DIWD02Z7LAUC0" 28 http GET https://registry.npmjs.org/zmq 29 http 304 https://registry.npmjs.org/zmq 30 silly registry.get cb [ 304, 30 silly registry.get { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)', 30 silly registry.get etag: '"5OB0C3UXNGJ3DIWD02Z7LAUC0"', 30 silly registry.get date: 'Tue, 17 Jul 2012 16:40:05 GMT', 30 silly registry.get 'content-length': '0' } ] 31 verbose etag zmq from cache 32 silly addNameRange number 2 { name: 'zmq', range: '', hasData: true } 33 silly addNameRange versions [ 'zmq', 33 silly addNameRange [ '1.0.0', 33 silly addNameRange '1.0.1', 33 silly addNameRange '1.0.2', 33 silly addNameRange '1.0.3', 33 silly addNameRange '1.0.4', 33 silly addNameRange '2.0.0', 33 silly addNameRange '2.0.1', 33 silly addNameRange '2.0.2', 33 silly addNameRange '2.0.3', 33 silly addNameRange '2.1.0' ] ] 34 verbose addNamed [ 'zmq', '2.1.0' ] 35 verbose addNamed [ '2.1.0', '2.1.0' ] 36 silly lockFile 67e221f0-zmq-2-1-0 zmq@2.1.0 37 verbose lock zmq@2.1.0 /Users/hug/.npm/67e221f0-zmq-2-1-0.lock 38 verbose read json /Users/hug/.npm/zmq/2.1.0/package/package.json 39 silly lockFile 67e221f0-zmq-2-1-0 zmq@2.1.0 40 silly lockFile 6227fbd7-zmq zmq@ 41 silly resolved [ { name: 'zmq', 41 silly resolved version: '2.1.0', 41 silly resolved description: 'Bindings for node.js to zeromq', 41 silly resolved main: 'index', 41 silly resolved repository: 41 silly resolved { type: 'git', 41 silly resolved url: 'http://github.com/JustinTulloss/zeromq.node.git' }, 41 silly resolved devDependencies: { should: '', batch: '', jade: '', dox: '_' }, 41 silly resolved contributors: 41 silly resolved [ [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object], 41 silly resolved [Object] ], 41 silly resolved scripts: { install: 'node-gyp rebuild' }, 41 silly resolved gypfile: true, 41 silly resolved readme: '\n# node-zeromq\n\n ØMQ bindings for node.js.\n\n## Installation\n\n $ npm install zmq\n\n## Example\n\nproducer.js:\n\njs\nvar zmq = require(\'zmq\')\n , sock = zmq.socket(\'push\');\n\nsock.bindSync(\'tcp://127.0.0.1:3000\');\nconsole.log(\'Producer bound to port 3000\');\n\nsetInterval(function(){\n console.log(\'sending work\');\n sock.send(\'some work\');\n}, 500);\n\n\nworker.js:\n\njs\n\nvar zmq = require(\'zmq\')\n , sock = zmq.socket(\'pull\');\n\nsock.connect(\'tcp://127.0.0.1:3000\');\nconsole.log(\'Worker connected to port 3000\');\n\nsock.on(\'message\', function(msg){\n console.log(\'work: %s\', msg.toString());\n});\n\n\n## Running tests\n\n Install dev deps:\n\n $ npm install\n\n Build:\n\n $ make\n\n Test:\n\n $ make test\n\n## Contributors\n\n Authored by Justin Tulloss, maintained by Shripad K and TJ Holowaychuk. To contribute please ensure all tests pass, and do your best to maintain the style used within the rest of the library.\n\n Output of git summary:\n\n project: zeromq.node\n commits: 260\n files : 38\n authors: \n 114\tJustin Tulloss 43.8%\n 53\tTj Holowaychuk 20.4%\n 48\tStéphan Kochen 18.5%\n 12\tjeremybarnes 4.6%\n 10\tTJ Holowaychuk 3.8%\n 9\tmike castleman 3.5%\n 3\tYaroslav Shirokov 1.2%\n 2\tCorey Jewett 0.8%\n 2\tmgc 0.8%\n 1\trick 0.4%\n 1\tMatt Crocker 0.4%\n 1\tJoshua Gourneau 0.4%\n 1\tMicheil Smith 0.4%\n 1\tJeremy Barnes 0.4%\n 1\tnponeccop 0.4%\n 1\tPaul Bergeron 0.4%\n\n\n', 41 silly resolved _id: 'zmq@2.1.0', 41 silly resolved _from: 'zmq' } ] 42 info install zmq@2.1.0 into /Users/hug/Temp/zmq/node 43 info installOne zmq@2.1.0 44 verbose from cache /Users/hug/.npm/zmq/2.1.0/package/package.json 45 info /Users/hug/Temp/zmq/node/node_modules/zmq unbuild 46 verbose read json /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 47 verbose tar unpack /Users/hug/.npm/zmq/2.1.0/package.tgz 48 silly lockFile b8d7ea18-g-Temp-zmq-node-node-modules-zmq /Users/hug/Temp/zmq/node/node_modules/zmq 49 verbose lock /Users/hug/Temp/zmq/node/node_modules/zmq /Users/hug/.npm/b8d7ea18-g-Temp-zmq-node-node-modules-zmq.lock 50 silly gunzTarPerm modes [ '755', '644' ] 51 silly gunzTarPerm extractEntry .npmignore 52 silly gunzTarPerm extractEntry binding.cc 53 silly gunzTarPerm extractEntry binding.gyp 54 silly gunzTarPerm extractEntry History.md 55 silly gunzTarPerm extractEntry index.js 56 silly gunzTarPerm extractEntry LICENSE 57 silly gunzTarPerm extractEntry Makefile 58 silly gunzTarPerm extractEntry package.json 59 silly gunzTarPerm extractEntry README.md 60 silly gunzTarPerm extractEntry wscript 61 silly gunzTarPerm extractEntry docs/highlight.js 62 silly gunzTarPerm extractEntry docs/index.html 63 silly gunzTarPerm extractEntry docs/index.json 64 silly gunzTarPerm extractEntry docs/menu.js 65 silly gunzTarPerm extractEntry docs/style.css 66 silly gunzTarPerm extractEntry docs/template.jade 67 silly gunzTarPerm extractEntry lib/index.js 68 silly gunzTarPerm extractEntry test/run.js 69 silly gunzTarPerm extractEntry test/test.exports.js 70 silly gunzTarPerm extractEntry test/test.socket.events.js 71 silly gunzTarPerm extractEntry test/test.socket.js 72 silly gunzTarPerm extractEntry test/test.socket.messages.js 73 silly gunzTarPerm extractEntry test/test.socket.multipart.message.js 74 silly gunzTarPerm extractEntry test/test.socket.multipart.sndmore.js 75 silly gunzTarPerm extractEntry test/test.socket.pub-sub.filter.js 76 silly gunzTarPerm extractEntry test/test.socket.pub-sub.js 77 silly gunzTarPerm extractEntry test/test.socket.req-rep.js 78 silly gunzTarPerm extractEntry test/test.socket.req-rep.multiple.js 79 silly gunzTarPerm extractEntry examples/dealer_router.js 80 silly gunzTarPerm extractEntry examples/pub_sub.js 81 silly gunzTarPerm extractEntry examples/push_pull.js 82 silly gunzTarPerm extractEntry examples/rep_req.js 83 silly gunzTarPerm extractEntry examples/req_rep.js 84 silly gunzTarPerm extractEntry examples/router_dealer.js 85 silly gunzTarPerm extractEntry examples/rpc.js 86 silly gunzTarPerm extractEntry examples/devices/forwarder.js 87 silly gunzTarPerm extractEntry examples/devices/queue.js 88 silly gunzTarPerm extractEntry examples/devices/streamer.js 89 silly gunzTarPerm extractEntry examples/workers/producer.js 90 silly gunzTarPerm extractEntry examples/workers/worker.js 91 verbose read json /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 92 silly lockFile b8d7ea18-g-Temp-zmq-node-node-modules-zmq /Users/hug/Temp/zmq/node/node_modules/zmq 93 info preinstall zmq@2.1.0 94 verbose from cache /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 95 verbose readDependencies using package.json deps 96 verbose from cache /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 97 verbose readDependencies using package.json deps 98 silly resolved [] 99 verbose about to build /Users/hug/Temp/zmq/node/node_modules/zmq 100 info build /Users/hug/Temp/zmq/node/node_modules/zmq 101 verbose from cache /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 102 verbose linkStuff [ false, false, false, '/Users/hug/Temp/zmq/node/node_modules' ] 103 info linkStuff zmq@2.1.0 104 verbose linkBins zmq@2.1.0 105 verbose linkMans zmq@2.1.0 106 verbose rebuildBundles zmq@2.1.0 107 info install zmq@2.1.0 108 verbose unsafe-perm in lifecycle true 109 silly exec sh "-c" "node-gyp rebuild" 110 silly sh,-c,node-gyp rebuild,/Users/hug/Temp/zmq/node/node_modules/zmq spawning 111 info zmq@2.1.0 Failed to exec install script 112 info /Users/hug/Temp/zmq/node/node_modules/zmq unbuild 113 verbose from cache /Users/hug/Temp/zmq/node/node_modules/zmq/package.json 114 info preuninstall zmq@2.1.0 115 info uninstall zmq@2.1.0 116 verbose true,/Users/hug/Temp/zmq/node/node_modules,/Users/hug/Temp/zmq/node/node_modules unbuild zmq@2.1.0 117 info postuninstall zmq@2.1.0 118 error zmq@2.1.0 install: node-gyp rebuild 118 error sh "-c" "node-gyp rebuild" failed with 1 119 error Failed at the zmq@2.1.0 install script. 119 error This is most likely a problem with the zmq package, 119 error not with npm itself. 119 error Tell the author that this fails on your system: 119 error node-gyp rebuild 119 error You can get their info via: 119 error npm owner ls zmq 119 error There is likely additional logging output above. 120 error System Darwin 10.8.0 121 error command "node" "/usr/local/bin/npm" "install" "zmq" 122 error cwd /Users/hug/Temp/zmq/node 123 error node -v v0.8.2 124 error npm -v 1.1.43 125 error code ELIFECYCLE 126 error stack Error: zmq@2.1.0 install: node-gyp rebuild 126 error stack sh "-c" "node-gyp rebuild" failed with 1 126 error stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:56:20) 126 error stack at ChildProcess.EventEmitter.emit (events.js:91:17) 126 error stack at Process._handle.onexit (child_process.js:674:10) 127 verbose exit [ 1, true ]

Thanks in advance.

guileen commented 12 years ago

same

skiz commented 12 years ago

same here also.

scott4dev commented 12 years ago

+1 :(

AlexeyKupershtokh commented 11 years ago

Any news on this? Have anybody tried to install the git master version or using newer libzmq versions?

esatterwhite commented 11 years ago

I was able to install on 10.7.x with the master branch ( 889937a8c90 )

I installed 0MQ 3.2.2 from source into my home dir ( added to $PATH )

I also had to git clone zeromq.node repo and modify the Make file to include:

CFLAGS = -I /Users/::USER NAME::/local/include CXXFLAGS = -I /Users/::USER NAME::local/include LDFLAGS = -L /Users/::USER NAME::/local/lib

the npm install path/to/zeromq.node

NOTE: Their seems to be a bug here, the version always installs as 2.2.0 even though the 3.2.2 libraries are installed. which means some of the newer features are excluded, like XPUB / XSUB and the such.

I did the same thing on a linux machine and did not have this problem.