binding.cc:28:17: 致命错误:zmq.h:没有那个文件或目录
make: 进入目录“/opt/node_modules/zmq/build”
CXX(target) Release/obj.target/zmq/binding.o
../binding.cc:28:17: 致命错误:zmq.h:没有那个文件或目录
#include <zmq.h>
^
编译中断。
make: *** [Release/obj.target/zmq/binding.o] 错误 1
make: 离开目录“/opt/node_modules/zmq/build”
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.10.0-229.el7.x86_64
gyp ERR! command "/opt/nodejs/bin/node" "/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/node_modules/zmq
gyp ERR! node -v v4.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 3.10.0-229.el7.x86_64
npm ERR! argv "/opt/nodejs/bin/node" "/usr/local/bin/npm" "install" "zmq" "--unsafe-perm"
npm ERR! node v4.2.0
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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! Please include the following file with any support request: npm ERR! /opt/npm-debug.log
===========================my libzmq3 info================================= [root@localhost opt]# rpm -qi libzmq3 Name : libzmq3 Version : 3.2.2 Release : 5.1 Architecture: x86_64 Install Date: 2015年10月21日 星期三 02时04分04秒 Group : Productivity/Networking/Web/Servers Size : 1271696 License : LGPL-3.0+ Signature : DSA/SHA1, 2013年04月10日 星期三 00时14分54秒, Key ID 41b42a80a949b429 Source RPM : zeromq-3.2.2-5.1.src.rpm Build Date : 2013年04月10日 星期三 00时14分44秒 Build Host : build13 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/home:jblunck URL : http://www.zeromq.org/ Summary : Shared Library for ZeroMQ Description : The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more.
This package holds the shared library part of the ZeroMQ package.
You probably need libzmq3-dev or some other package that provides the missing headers.
On October 20, 2015 1:15:49 PM GMT+03:00, wanchao huang [email protected] wrote:
make: 进入目录“/opt/node_modules/zmq/build” CXX(target) Release/obj.target/zmq/binding.o ../binding.cc:28:17: 致命错误:zmq.h:没有那个文件或目录 #include <zmq.h> ^ 编译中断。 make: *** [Release/obj.target/zmq/binding.o] 错误 1 make: 离开目录“/opt/node_modules/zmq/build” gyp ERR! build error gyp ERR! stack Error:
makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.10.0-229.el7.x86_64 gyp ERR! command "/opt/nodejs/bin/node" "/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/node_modules/zmq gyp ERR! node -v v4.2.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Linux 3.10.0-229.el7.x86_64 npm ERR! argv "/opt/nodejs/bin/node" "/usr/local/bin/npm" "install" "zmq" "--unsafe-perm" npm ERR! node v4.2.0 npm ERR! npm v2.14.7 npm ERR! code ELIFECYCLEnpm ERR! [email protected] install:
node-gyp rebuildnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. 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! Please include the following file with any support request: npm ERR! /opt/npm-debug.log
===========================my libzmq3 info================================= [root@localhost opt]# rpm -qi libzmq3 Name : libzmq3 Version : 3.2.2 Release : 5.1 Architecture: x86_64 Install Date: 2015年10月21日 星期三 02时04分04秒 Group : Productivity/Networking/Web/Servers Size : 1271696 License : LGPL-3.0+ Signature : DSA/SHA1, 2013年04月10日 星期三 00时14分54秒, Key ID 41b42a80a949b429 Source RPM : zeromq-3.2.2-5.1.src.rpm Build Date : 2013年04月10日 星期三 00时14分44秒 Build Host : build13 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/home:jblunck URL : http://www.zeromq.org/ Summary : Shared Library for ZeroMQ Description : The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more.
This package holds the shared library part of the ZeroMQ package.
Reply to this email directly or view it on GitHub: https://github.com/JustinTulloss/zeromq.node/issues/459