zmq@2.8.0 error while installing zerorpc. I know that it has been reported earlier, but I am still getting it. Please help
praveenkashyap opened this issue · 8 comments
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 /home/praveen/node_modules/zerorpc/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:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-43-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/praveen/node_modules/zerorpc/node_modules/zmq
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! zmq@2.8.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.8.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.13.0-43-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zerorpc"
npm ERR! cwd /home/praveen
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
praveen@Yoda:~$ ^C
@praveenkashyap - I'm assuming you tried to install zerorpc using just npm install zerorpc
? Give it a shot using sudo npm install zerorpc
and report back if it throws another error.
Thanks Kelly for this quick response, I did try it with sudo. Here is the
full output:
sudo npm install zerorpc
msgpack@0.1.8 install
/home/praveen/node_modules/zerorpc/node_modules/msgpack
node-gyp rebuild
make: Entering directory
`/home/praveen/node_modules/zerorpc/node_modules/msgpack/build'
CXX(target) Release/obj.target/libmsgpack/deps/msgpack/object.o
In file included from ../deps/msgpack/msgpack/type/fixint.hpp:22:0,
from ../deps/msgpack/msgpack/type.hpp:3,
from ../deps/msgpack/msgpack/object.hpp:409,
from ../deps/msgpack/object.cpp:18:
../deps/msgpack/msgpack/type/int.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, signed char)’:
../deps/msgpack/msgpack/type/int.hpp:145:76: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type =
type::POSITIVE_INTEGER, o.via.u64 = v; }
^
../deps/msgpack/msgpack/type/int.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, short int)’:
../deps/msgpack/msgpack/type/int.hpp:148:76: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type =
type::POSITIVE_INTEGER, o.via.u64 = v; }
^
../deps/msgpack/msgpack/type/int.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, int)’:
../deps/msgpack/msgpack/type/int.hpp:151:76: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type =
type::POSITIVE_INTEGER, o.via.u64 = v; }
^
../deps/msgpack/msgpack/type/int.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, long int)’:
../deps/msgpack/msgpack/type/int.hpp:154:76: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type =
type::POSITIVE_INTEGER, o.via.u64 = v; }
^
../deps/msgpack/msgpack/type/int.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, long long int)’:
../deps/msgpack/msgpack/type/int.hpp:157:76: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type =
type::POSITIVE_INTEGER, o.via.u64 = v; }
^
In file included from ../deps/msgpack/msgpack/type.hpp:3:0,
from ../deps/msgpack/msgpack/object.hpp:409,
from ../deps/msgpack/object.cpp:18:
../deps/msgpack/msgpack/type/fixint.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, msgpack::type::fix_int8)’:
../deps/msgpack/msgpack/type/fixint.hpp:118:88: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() :
o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
^
In file included from ../deps/msgpack/msgpack/type.hpp:3:0,
from ../deps/msgpack/msgpack/object.hpp:409,
from ../deps/msgpack/object.cpp:18:
../deps/msgpack/msgpack/type/fixint.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, msgpack::type::fix_int16)’:
../deps/msgpack/msgpack/type/fixint.hpp:121:88: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() :
o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
^
../deps/msgpack/msgpack/type/fixint.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, msgpack::type::fix_int32)’:
../deps/msgpack/msgpack/type/fixint.hpp:124:88: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() :
o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
^
../deps/msgpack/msgpack/type/fixint.hpp: In function ‘void
msgpack::operator<<(msgpack::object&, msgpack::type::fix_int64)’:
../deps/msgpack/msgpack/type/fixint.hpp:127:88: warning: enumeral and
non-enumeral type in conditional expression [enabled by default]
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() :
o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
^
CC(target) Release/obj.target/libmsgpack/deps/msgpack/objectc.o
CC(target) Release/obj.target/libmsgpack/deps/msgpack/unpack.o
../deps/msgpack/unpack.c: In function ‘template_callback_root’:
../deps/msgpack/unpack.c:59:1: warning: missing initializer for field
‘type’ of ‘msgpack_object’ [-Wmissing-field-initializers]
{ msgpack_object o = {}; return o; }
^
In file included from ../deps/msgpack/msgpack/unpack.h:22:0,
from ../deps/msgpack/unpack.c:18:
../deps/msgpack/msgpack/object.h:76:22: note: ‘type’ declared here
msgpack_object_type type;
^
CC(target) Release/obj.target/libmsgpack/deps/msgpack/vrefbuffer.o
CC(target) Release/obj.target/libmsgpack/deps/msgpack/zone.o
CC(target) Release/obj.target/libmsgpack/deps/msgpack/version.o
AR(target) Release/obj.target/deps/msgpack/msgpack.a
COPY Release/msgpack.a
CXX(target) Release/obj.target/msgpackBinding/src/msgpack.o
SOLINK_MODULE(target) Release/obj.target/msgpackBinding.node
SOLINK_MODULE(target) Release/obj.target/msgpackBinding.node: Finished
COPY Release/msgpackBinding.node
make: Leaving directory
`/home/praveen/node_modules/zerorpc/node_modules/msgpack/build'
zmq@2.8.0 install /home/praveen/node_modules/zerorpc/node_modules/zmq
node-gyp rebuild
make: Entering directory
/home/praveen/node_modules/zerorpc/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
/home/praveen/node_modules/zerorpc/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:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:810:12)
gyp ERR! System Linux 3.13.0-43-generic
gyp ERR! command "node"
"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/praveen/node_modules/zerorpc/node_modules/zmq
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! zmq@2.8.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.8.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.13.0-43-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zerorpc"
npm ERR! cwd /home/praveen
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
On Sun, Dec 14, 2014 at 4:31 PM, Kelly R. Hale notifications@github.com
wrote:
@praveenkashyap https://github.com/praveenkashyap - I'm assuming you
tried to install zerorpc using just npm install zerorpc? Give it a shot sudo
npm install zerorpc and report back if it throws another error.—
Reply to this email directly or view it on GitHub
#53 (comment)
.
Praveen
Kelly
I have tried to install zerorpc on another machine and getting other
errors: Here are the details:
sudo npm install zerorpc
[sudo] password for praveen:
/usr/bin/env: node: No such file or directory
praveen@Leia:$ sudo npm install zerorpc$ which node
/usr/bin/env: node: No such file or directory
praveen@Leia:
praveen@Leia:$ which nodejs$ nodejs -v
/usr/bin/nodejs
praveen@Leia:
v0.10.25
praveen@Leia:$ which npm$ npm -v
/usr/local/bin/npm
praveen@Leia:
1.3.10
It seems to me that I have all that is needed but for some reason node is
not found...
Thanks a lot for your help
Praveen
On Sun, Dec 14, 2014 at 4:31 PM, Kelly R. Hale notifications@github.com
wrote:
@praveenkashyap https://github.com/praveenkashyap - I'm assuming you
tried to install zerorpc using just npm install zerorpc? Give it a shot sudo
npm install zerorpc and report back if it throws another error.—
Reply to this email directly or view it on GitHub
#53 (comment)
.
Praveen
@praveenkashyap For your latest issue, I'm assuming that you're on Ubuntu, where the node.js binary has been named "nodejs" rather than "node" because of a name conflict with an older package. Check out this Stack Overflow answer for a few fixes: http://stackoverflow.com/a/18130296
Do you have the libzmq3-dev
package (if you are using Debian) installed? The compiler is complaining that zmq headers are not found.
praveenkashyap,
i met the same issue, did you find any solution?, thanks
No I did not. I just used Python to do IPC.
Sent from my iPhone
On Apr 14, 2015, at 2:09 AM, zhyage notifications@github.com wrote:
praveenkashyap,
i met the same issue, did you find any solution?, thanks—
Reply to this email directly or view it on GitHub.
Solution here was to install libzmq3-dev. (sudo apt-get install libzmq3-dev).