Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

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

Open
shuanzi opened this issue Sep 1, 2014 · 17 comments

Comments

@shuanzi
Copy link

shuanzi commented Sep 1, 2014

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
Copy link

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
Copy link
Author

shuanzi commented Nov 1, 2014

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
Copy link

drossow commented Feb 5, 2015

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

@si-griffiths
Copy link

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

@Genovo
Copy link

Genovo commented Oct 18, 2015

thanks kranthicu

@MrZenW
Copy link

MrZenW commented Oct 20, 2015

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

@MrZenW
Copy link

MrZenW commented Oct 20, 2015

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

@HouCoder
Copy link

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

@phramz
Copy link

phramz commented Jan 19, 2016

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

@nikolas
Copy link

nikolas commented Mar 29, 2016

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

@waddles
Copy link

waddles commented Apr 6, 2016

Might need to run npm up first.

@dnuske
Copy link

dnuske commented May 11, 2017

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
Copy link

scm-ns commented May 21, 2017

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

@swateek
Copy link

swateek commented Jul 25, 2017

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
Copy link

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

@swateek
Copy link

swateek commented Mar 26, 2018

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests