Error: Unable to load shared library #46

timohofmeijer opened this Issue Dec 15, 2011 · 10 comments


None yet
10 participants

I get the Following error when trying to run a simple example on OS X :
(Not sure if its my setup or a bug, forgive me)

throw e; // process.nextTick error, or 'error' event on first tick
Error: Unable to load shared library /Users/Timo/nodejstest/node_modules/db-mysql/build/Release/mysql_bindings.node
at Object..node (module.js:463:11)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/Users/Timo/nodejstest/node_modules/db-mysql/db-mysql.js:18:15)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)

This is the same bug as this: Sannis/node-mysql-libmysqlclient#107

I also experience it, moving down version by version to find a working one now.

thejh commented Jan 1, 2012

Heh, I have the same problem with my library (nacl) - it works on node v0.4.12, but not on node v0.6.x.

Ralle commented Jan 29, 2012

I am getting the same problem on Lion.

I also had this problem when running Node 0.6.7 on OSX. Setting DYLD_LIBRARY_PATH to the mysql lib directory fixed it for me. In my case this was /usr/local/mysql/lib.

neb642 commented Feb 17, 2012

I have the same problem, using windows xp...

Same problem on OSX. Setting DYLD_LIBRARY_PATH didn't work :(

marnberg commented Mar 8, 2012

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
works in OS X 10.6 and node 0.6.10

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
Worked on 10.7.3

Hi. I'm having the same problem in Ubuntu. Does anybody knows how to solve it?

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment