JustinTulloss / zeromq.node

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

Error: libzmq.so.3: cannot open shared object file: No such file or directory #347

Open shuanzi opened 10 years ago

shuanzi commented 10 years ago

Hi,everyone, I just try the example on npm page and got this error. Does any body had this problem?

ØMQ/4.x with node v0.10.30.

/home/xiquan/node_modules/zmq/node_modules/bindings/bindings.js:83 throw e ^ Error: libzmq.so.3: cannot open shared object file: No such file or directory at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at bindings (/home/xiquan/node_modules/zmq/node_modules/bindings/bindings.js:76:44) at Object. (/home/xiquan/node_modules/zmq/lib/index.js:6:30) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)

kranthicu commented 10 years ago

Is this on Ubuntu? I had something similar and figured I need to add /usr/local/lib to ldconfig Add /usr/local/lib to a line in ld.so.conf: $ sudo touch /etc/ld.so.conf

and rerun ldconfig

$ sudo ldconfig

shuanzi commented 10 years ago

Nope, it's on Mint Linux. It seems that you have to make sure ZeroMQ is installed before you $ npm install zmq. (See README.md)

drossow commented 9 years ago

I had the same issue, also on Mint. Running ldconfig after installing zmq fixed the problem.

si-griffiths commented 9 years ago

I had the same issue on Ubuntu, running ldconfig fixed it.

Genovo commented 9 years ago

thanks kranthicu

MrZenW commented 9 years ago

I had the same issue, but I'm on Centos7 and node.js v4.

MrZenW commented 9 years ago

I found the way,effective for me, $ export LD_LIBRARY_PATH=/usr/local/lib.

HouCoder commented 8 years ago

Thanks @zenboss works for me!,I had the same issue on Ubuntu 14.04.

phramz commented 8 years ago

Same issue on Ubuntu 15.10 ... as @si-griffiths suggested ldconfig fixed it.

nikolas commented 8 years ago

ldconfig and /usr/local/lib doesn't work for me, on Ubuntu 16.04.

waddles commented 8 years ago

Might need to run npm up first.

dnuske commented 7 years ago

You have to install liblas-c3.

sudo aptitude install liblas-c3

on Ubuntu 16.04 you have to add a packages source:

deb http://cz.archive.ubuntu.com/ubuntu xenial main universe

to your /etc/apt/sources.list then update apt-get and you should be able to install it.

scm-ns commented 7 years ago

For me adding adding /usr/local/bin to /etc/ld.so.conf and calling sudo ldconfig fixed the error.

swateek commented 7 years ago

Nothing has worked for me.

CentOS and Node 4.x LTS.

Even tried migrating to 6.x LTS to check, but nope.

In my case the libzmq.so.4 doesn't exist, had used yum to install zeromq.

Abigale001 commented 6 years ago

Ubuntu 16.04 I also meet such problem. ldconfig and Add Path didn't work for me.

swateek commented 6 years ago

I downloaded "lib64pgm5.2_0-5.2.122-3.mga6.x86_64.rpm" after a lot of searching and this library installed the require libzmq.so.4

This worked for me.

Abigale001 commented 6 years ago

Thank you. I downloaded the package but didn't work for me. After I install a few packages apt-get install libminiupnpc-dev libzmq3-dev libevent-pthreads-2.0.5 It works.