【问题标题】:zeromq.node installation error Ubuntu 12.04: ' node-gyp rebuild'zeromq.node 安装错误 Ubuntu 12.04: 'node-gyp rebuild'
【发布时间】:2012-08-12 03:25:21
【问题描述】:

我正在尝试安装 zeromq.node 使用:

$ npm install zmq

但是,我不断收到以下错误。任何帮助将不胜感激。

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! zmq@2.1.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the zmq@2.1.0 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

【问题讨论】:

  • '其他日志记录详细信息可在以下位置找到:home/robot/code/game/test/amqp/npm-debug.log'。该文件应包含完整的错误描述。在此处发布。

标签: node.js ubuntu npm zeromq ubuntu-12.04


【解决方案1】:

我设法通过遵循this tutorial for installing the python-client. 解决了这个问题,在完成每个步骤后,我发现我可以通过 npm 安装 node.zeromq 模块:

$ npm install zmq

我猜这是因为缺少一些必需的文件。很可能是libzmq-dev

【讨论】:

【解决方案2】:

gyp bulid 错误删除了 libzmq dev 及其依赖项并尝试了以下步骤..它对我有用

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

【讨论】:

    猜你喜欢
    • 2014-11-29
    • 2015-08-23
    • 1970-01-01
    • 1970-01-01
    • 2020-03-19
    • 1970-01-01
    • 2014-02-05
    • 1970-01-01
    • 2015-12-07
    相关资源
    最近更新 更多