zeromq.node icon indicating copy to clipboard operation
zeromq.node copied to clipboard

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

Open shuanzi opened this issue 11 years ago • 17 comments

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)

shuanzi avatar Sep 01 '14 05:09 shuanzi

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

kranthicu avatar Oct 29 '14 00:10 kranthicu

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)

shuanzi avatar Nov 01 '14 02:11 shuanzi

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

drossow avatar Feb 05 '15 18:02 drossow

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

si-griffiths avatar Feb 09 '15 16:02 si-griffiths

thanks kranthicu

Genovo avatar Oct 18 '15 15:10 Genovo

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

MrZenW avatar Oct 20 '15 02:10 MrZenW

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

MrZenW avatar Oct 20 '15 02:10 MrZenW

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

HouCoder avatar Nov 28 '15 13:11 HouCoder

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

phramz avatar Jan 19 '16 11:01 phramz

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

nikolas avatar Mar 29 '16 16:03 nikolas

Might need to run npm up first.

waddles avatar Apr 06 '16 07:04 waddles

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.

dnuske avatar May 11 '17 14:05 dnuske

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

scm-ns avatar May 21 '17 14:05 scm-ns

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.

swateek avatar Jul 25 '17 18:07 swateek

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

Abigale001 avatar Mar 26 '18 09:03 Abigale001

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.

swateek avatar Mar 26 '18 09:03 swateek

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.

Abigale001 avatar Mar 27 '18 01:03 Abigale001