【问题标题】:node-gyp rebuild fail , zmq/build file can't createnode-gyp 重建失败,zmq/build 文件无法创建
【发布时间】:2016-11-08 01:43:19
【问题描述】:

我使用 npm install node-gyp 并且运行良好,但是当我使用 npm 安装 zmq 时,node-gyp 重建失败并出现以下错误。我需要 /zmq/build 才能运行我的程序。

我尝试重新安装 node-gyp 但没有成功。有没有人遇到过这种情况?

zmq@2.15.3 安装/lib/jinteki/netrunner/node_modules/zmq

node-gyp rebuild

make: Entering directory `/lib/jinteki/netrunner/node_modules/zmq/build'

CXX(target) Release/obj.target/zmq/binding.o../binding.cc:28:17: fatal 

error: zmq.h: No such file or directory

#include <zmq.h>
             ^

compilation terminated.

make: *** [Release/obj.target/zmq/binding.o] Error 1

make: Leaving directory `/lib/jinteki/netrunner/node_modules/zmq/build'

gyp ERR! build error 

gyp ERR! stack Error: `make` failed with exit code: 2

gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules
/npm/node_modules/node-gyp/lib/build.js:276:23)

gyp ERR! stack     at emitTwo (events.js:106:13)

gyp ERR! stack     at ChildProcess.emit (events.js:191:7)

gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:204:12)

gyp ERR! System Linux 3.13.0-86-generic

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules
/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /lib/jinteki/netrunner/node_modules/zmq

gyp ERR! node -v v6.2.2

gyp ERR! node-gyp -v v3.3.1

gyp ERR! not ok 

【问题讨论】:

    标签: javascript node.js node-gyp


    【解决方案1】:

    您没有安装适当的 zeromq 库头文件。提供这些标头的包的名称因您的平台/发行版而异。有关完整的安装说明,请参阅 zmq readme

    【讨论】:

      猜你喜欢
      • 2022-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-20
      • 1970-01-01
      • 1970-01-01
      • 2019-06-23
      相关资源
      最近更新 更多