JustinTulloss / zeromq.node

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

Confused between zmq and zeromq #599

Closed truongdqse03303 closed 6 years ago

truongdqse03303 commented 6 years ago

Hi im newbie with zmq and have the issue: Follow the doc i did install python 2.7, make, gcc, ./configure ... But when i try "npm i zmq" got the err

zmq@2.15.3 install /root/node_modules/zmq node-gyp rebuild make: Entering directory /root/node_modules/zmq/build' CXX(target) Release/obj.target/zmq/binding.o make: g++: Command not found make: *** [Release/obj.target/zmq/binding.o] Error 127 make: Leaving directory /root/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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 3.10.0-693.11.6.el7.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/node_modules/zmq gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zmq@2.15.3 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zmq@2.15.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: ` but when i try zeromq instead of zmq, like npm i zeromq var zmq = require('zmq') => var zmq = require('zeromq');

anything working fine without err, even i dont need to install anything like python gcc ... just a fresh os with nodejs What am i miss here. Please let me known. Thank!

ronkorving commented 6 years ago

Please read https://github.com/JustinTulloss/zeromq.node#project-status I hope that clarifies things :)

truongdqse03303 commented 6 years ago

Thanks @ronkorving