2012-08-15 16 views
5

Sto cercando di installare zeromq.node utilizzando:errore zeromq.node installazione di Ubuntu 12.04: 'nodo-gyp ricostruire'

$ npm install zmq

Tuttavia, continuo a ricevere l'errore sotto. Qualsiasi aiuto sarebbe molto apprezzato.

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2 
gyp ERR! stack  at ChildProcess.onExit (/usr/share/npm/node_modules/node-gyp/lib/build.js:215:23) 
gyp ERR! stack  at ChildProcess.EventEmitter.emit (events.js:91:17) 
gyp ERR! stack  at Process._handle.onexit (child_process.js:674:10) 
gyp ERR! System Linux 3.2.0-29-generic 
gyp ERR! command "node" "/usr/share/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /home/robot/code/game/node_modules/zmq 
gyp ERR! node -v v0.8.6 
gyp ERR! node-gyp -v v0.6.3 
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1 
npm ERR! 
npm ERR! Failed at the [email protected] install 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-gyp rebuild 
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! System Linux 3.2.0-29-generic 
npm ERR! command "nodejs" "/usr/bin/npm" "install" "zmq" 
npm ERR! cwd /home/robot/code/game/test/amqp 
npm ERR! node -v v0.8.6 
npm ERR! npm -v 1.1.48 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/robot/code/game/test/amqp/npm-debug.log 
npm ERR! not ok code 0 
+0

'Ulteriori dettagli di registrazione si possono trovare in: Home/robot/code/gioco/test/AMQP/NPM-debug.log'. Questo file dovrebbe contenere la descrizione completa dell'errore. Pubblicalo qui. –

risposta

8

errore gyp bulid rimosso libzmq dev e le sue dipendenze e ha cercato di seguito steps..it ha funzionato per me

$ sudo apt-get update 
$ sudo apt-get install build-essential 
$ sudo apt-get install libzmq-dev 
$ npm install zmq 
4

sono riuscito a risolvere questo seguendo this tutorial for installing the python-client. Dopo aver completato tutti i passaggi che ho trovato sono stato poi in grado di installare il modulo node.zeromq attraverso NPM utilizza:

$ npm install zmq 

Sto indovinando questo è dovuto alla mancanza di alcuni dei file richiesti. Molto probabilmente libzmq-dev.

+0

Questo http://stackoverflow.com/a/23732646/30946 è stato più utile. Non c'è una buona ragione per installare roba di Python per riparare gli strumenti del nodo. – jcollum

+0

@jcollum grazie - ha senso. – RobotEyes

Problemi correlati