node-db-mysql icon indicating copy to clipboard operation
node-db-mysql copied to clipboard

Error: Unable to load shared library

Open timohofmeijer opened this issue 12 years ago • 10 comments

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)

node.js:201 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)

timohofmeijer avatar Dec 15 '11 12:12 timohofmeijer

This is the same bug as this: https://github.com/Sannis/node-mysql-libmysqlclient/issues/107

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

andreas-bergstrom avatar Dec 18 '11 21:12 andreas-bergstrom

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

thejh avatar Jan 01 '12 12:01 thejh

I am getting the same problem on Lion.

Ralle avatar Jan 29 '12 18:01 Ralle

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.

snowtorious avatar Feb 07 '12 03:02 snowtorious

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

neb642 avatar Feb 17 '12 02:02 neb642

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

pixelfreak avatar Mar 02 '12 07:03 pixelfreak

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

marnberg avatar Mar 08 '12 00:03 marnberg

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

caseybecking avatar Mar 26 '12 23:03 caseybecking

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

ThiagoMiranda avatar Apr 25 '12 18:04 ThiagoMiranda

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

That worked for me.

caseybecking avatar Apr 25 '12 20:04 caseybecking