Sannis/node-mysql-libmysqlclient — Issue #107: Unable to load shared library /../build/Release/mysql_bindings.node
Author: clivelee
Created: 2011-12-11 03:34:08+00:00
State: open

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.

There is my error log:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Unable to load shared library /Users/a/code/aptana/nodejs-learning/node_modules/mysq
l-libmysqlclient/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/a/code/aptana/nodejs-learning/node_modules/mysql-libmysql
client/mysql-libmysqlclient.js:13: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)

Here is my install log:
> mysql-libmysqlclient@1.2.9 install /Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient
> make conf all

rm -rf ./build
rm -f ./mysql_bindings.node
rm -f conf-stamp
rm -f build-stamp
touch conf-stamp
node-waf configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /Users/clive/.node_libraries
Checking for node prefix : ok /opt/node
Checking for library mysqlclient_r : yes
Checking for header mysql.h : yes
'configure' finished successfully (3.558s)
touch build-stamp
node-waf build
Waf: Entering directory `/Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient/build'
[1/5] cxx: src/mysql_bindings.cc -> build/Release/src/mysql_bindings_1.o
[2/5] cxx: src/mysql_bindings_connection.cc -> build/Release/src/mysql_bindings_connection_1.o
[3/5] cxx: src/mysql_bindings_result.cc -> build/Release/src/mysql_bindings_result_1.o
[4/5] cxx: src/mysql_bindings_statement.cc -> build/Release/src/mysql_bindings_statement_1.o
[5/5] cxx_link: build/Release/src/mysql_bindings_1.o build/Release/src/mysql_bindings_connection_1.o build/Release/src/
mysql_bindings_result_1.o build/Release/src/mysql_bindings_statement_1.o -> build/Release/mysql_bindings.node
Waf: Leaving directory `/Users/a/code/aptana/nodejs-learning/node_modules/mysql-libmysqlclient/build'
'build' finished successfully (1.224s)