Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing on a Beaglebone and Ångström #80

Open
PatrikBichis opened this issue Aug 1, 2012 · 1 comment
Open

Problem installing on a Beaglebone and Ångström #80

PatrikBichis opened this issue Aug 1, 2012 · 1 comment

Comments

@PatrikBichis
Copy link

I get this error when installing

npm install db-mysql
npm http GET https://registry.npmjs.org/db-mysql
npm http 304 https://registry.npmjs.org/db-mysql

db-mysql@0.7.6 install /usr/node_modules/db-mysql
node-waf configure build

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 : not found
Checking for node prefix : ok /usr
Checking for program mysql_config : /usr/bin/mysql_config
Checking for library mysqlclient_r : Missing libmysqlclient_r
'configure' finished successfully (3.003s)
Waf: Entering directory /usr/node_modules/db-mysql/build' [ 1/12] cxx: lib/node-db/binding.cc -> build/Release/lib/node-db/binding_1.o [ 2/12] cxx: lib/node-db/connection.cc -> build/Release/lib/node-db/connection_1.o [ 3/12] cxx: lib/node-db/events.cc -> build/Release/lib/node-db/events_1.o [ 4/12] cxx: lib/node-db/exception.cc -> build/Release/lib/node-db/exception_1.o [ 5/12] cxx: lib/node-db/query.cc -> build/Release/lib/node-db/query_1.o [ 6/12] cxx: lib/node-db/result.cc -> build/Release/lib/node-db/result_1.o [ 7/12] cxx: src/connection.cc -> build/Release/src/connection_1.o [ 8/12] cxx: src/mysql.cc -> build/Release/src/mysql_1.o [ 9/12] cxx: src/query.cc -> build/Release/src/query_1.o [10/12] cxx: src/result.cc -> build/Release/src/result_1.o [11/12] cxx: src/mysql_bindings.cc -> build/Release/src/mysql_bindings_1.o [12/12] cxx_link: build/Release/lib/node-db/binding_1.o build/Release/lib/node-db/connection_1.o build/Release/lib/node-db/events_1.o build/Release/lib/node-db/exception_1.o build/Release/lib/node-db/query_1.o build/Release/lib/node-db/result_1.o build/Release/src/connection_1.o build/Release/src/mysql_1.o build/Release/src/query_1.o build/Release/src/result_1.o build/Release/src/mysql_bindings_1.o -> build/Release/mysql_bindings.node /usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status Waf: Leaving directory/usr/node_modules/db-mysql/build'
Build failed: -> task failed (err #1):
{task: cxx_link binding_1.o,connection_1.o,events_1.o,exception_1.o,query_1.o,result_1.o,connection_1.o,mysql_1.o,query_1.o,result_1.o,mysql_bindings_1.o -> mysql_bindings.node}

db-mysql@0.7.6 preuninstall /usr/node_modules/db-mysql
rm -rf build/*

npm ERR! db-mysql@0.7.6 install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the db-mysql@0.7.6 install script.
npm ERR! This is most likely a problem with the db-mysql package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:

What can be the problem?

@qraynaud
Copy link

There is a bug on the configure. It correctly reports you that mysqlclient_r is missing but don't fails on it. It should have. you just need to install libmysql dev files here. Not a node-db-mysql bug.

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

No branches or pull requests

2 participants