{"issue":{"title":"Unable to load shared library /../build/Release/mysql_bindings.node","created_at":"2011-12-11T03:34:08Z","user":{"login":"clivelee","id":506736,"url":"https://api.github.com/users/clivelee","gravatar_id":"66cdde9362465305bcdf2be5640b5df1","avatar_url":"https://secure.gravatar.com/avatar/66cdde9362465305bcdf2be5640b5df1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"labels":[{"name":"can-not-reproduce","url":"https://api.github.com/repos/Sannis/node-mysql-libmysqlclient/labels/can-not-reproduce","color":"fc0000"}],"updated_at":"2011-12-23T13:31:41Z","state":"open","id":2514625,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/Sannis/node-mysql-libmysqlclient/issues/107","body":"I install mysql-libmysqlclient success, but it throws a error when I run a example. My node version is 0.6.5 and my npm version is 1.0.16. I use Mac OS X 10.7.2 (64bit). What should I do to solve this problem? Thanks.\r\n\r\nThere is my error log:\r\nnode.js:201\r\n        throw e; // process.nextTick error, or 'error' event on first tick\r\n              ^\r\nError: Unable to load shared library /Users/a/code/aptana/nodejs-learning/node_modules/mysq\r\nl-libmysqlclient/build/Release/mysql_bindings.node\r\n    at Object..node (module.js:463:11)\r\n    at Module.load (module.js:351:31)\r\n    at Function._load (module.js:310:12)\r\n    at Module.require (module.js:357:17)\r\n    at require (module.js:368:17)\r\n    at Object.<anonymous> (/Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysql\r\nclient/mysql-libmysqlclient.js:13:15)\r\n    at Module._compile (module.js:432:26)\r\n    at Object..js (module.js:450:10)\r\n    at Module.load (module.js:351:31)\r\n    at Function._load (module.js:310:12)\r\n\r\nHere is my install log:\r\n> mysql-libmysqlclient@1.2.9 install /Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient\r\n> make conf all\r\n\r\nrm -rf ./build\r\nrm -f ./mysql_bindings.node\r\nrm -f conf-stamp\r\nrm -f build-stamp\r\ntouch conf-stamp\r\nnode-waf configure\r\nChecking for program g++ or c++          : /usr/bin/g++ \r\nChecking for program cpp                 : /usr/bin/cpp \r\nChecking for program ar                  : /usr/bin/ar \r\nChecking for program ranlib              : /usr/bin/ranlib \r\nChecking for g++                         : ok  \r\nChecking for node path                   : ok /Users/a/.node_libraries \r\nChecking for node prefix                 : ok /opt/node \r\nChecking for library mysqlclient_r       : yes \r\nChecking for header mysql.h              : yes \r\n'configure' finished successfully (3.558s)\r\ntouch build-stamp\r\nnode-waf build\r\nWaf: Entering directory `/Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient/build'\r\n[1/5] cxx: src/mysql_bindings.cc -> build/Release/src/mysql_bindings_1.o\r\n[2/5] cxx: src/mysql_bindings_connection.cc -> build/Release/src/mysql_bindings_connection_1.o\r\n[3/5] cxx: src/mysql_bindings_result.cc -> build/Release/src/mysql_bindings_result_1.o\r\n[4/5] cxx: src/mysql_bindings_statement.cc -> build/Release/src/mysql_bindings_statement_1.o\r\n[5/5] cxx_link: build/Release/src/mysql_bindings_1.o build/Release/src/mysql_bindings_connection_1.o build/Release/src/\r\nmysql_bindings_result_1.o build/Release/src/mysql_bindings_statement_1.o -> build/Release/mysql_bindings.node\r\nWaf: Leaving directory `/Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient/build'\r\n'build' finished successfully (1.224s)","number":107,"url":"https://api.github.com/repos/Sannis/node-mysql-libmysqlclient/issues/107","comments":11,"assignee":null},"comment":{"created_at":"2011-12-23T13:31:41Z","user":{"login":"tim-king","id":1282156,"url":"https://api.github.com/users/tim-king","gravatar_id":"491611e18037bea69cd1466d947e2aa4","avatar_url":"https://secure.gravatar.com/avatar/491611e18037bea69cd1466d947e2aa4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-23T13:31:41Z","id":3260858,"body":"I have the same problem with Lion 10.7.2. I downloaded the 64bit mysql as a pkg from the Mysql site. I think it is a dynamic loading problem - the libraries are placed in /usr/local/somecomplexname/lib. I also had a /usr/local/mysql directory (I assume 32 bit?). Anyway I renamed the mysql to mysql.32 and renamed complex name to mysql but still no luck. I think i might to have to set DYNLD_LIBRARY_PATH to something but I have tried tinkering with that and no luck so far.\r\nUsing strings on the .node file I can see that the mysql library file does not contain any path, so it's going to have to pick it up from somewhere.\r\n_LINKEDIT\r\nlibmysqlclient.18.dylib\r\n/usr/lib/libSystem.B.dylib\r\n/usr/lib/libstdc++.6.dylib","url":"https://api.github.com/repos/Sannis/node-mysql-libmysqlclient/issues/comments/3260858"},"action":"created"}