Skip to content

Instantly share code, notes, and snippets.

@benreesman
Created September 28, 2010 18:39
Show Gist options
  • Save benreesman/601521 to your computer and use it in GitHub Desktop.
Save benreesman/601521 to your computer and use it in GitHub Desktop.
continuity:~ ben$ mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include/mysql -g -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL]
--include [-I/usr/local/mysql/include/mysql]
--libs [-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm]
--libs_r [-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm]
--plugindir [/usr/local/mysql/lib/mysql/plugin]
--socket [/tmp/mysql.sock]
--port [0]
--version [5.1.51]
--libmysqld-libs [-L/usr/local/mysql/lib/mysql -lmysqld -ldl -lz -lm]
continuity:~ ben$ npm install mysql-libmysqlclient
npm info it worked if it ends with ok
npm info version 0.2.2
npm info install mysql-libmysqlclient@1.0.0
npm info preinstall mysql-libmysqlclient@1.0.0
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/local/node
Checking for library mysqlclient_r : not found, try to find nonthreadsafe libmysqlclient
Checking for library mysqlclient : not found
/usr/local/node/lib/node/.npm/mysql-libmysqlclient/1.0.0/package/wscript:38: error: Missing both libmysqlclient_r and libmysqlclient from libmysqlclient-devel or mysql-devel package
npm info mysql-libmysqlclient@1.0.0 Failed to exec preinstall script
npm ERR! install failed Error: mysql-libmysqlclient@1.0.0 preinstall: `node-waf configure build`
npm ERR! install failed `sh` failed with 1
npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/node/lib/node/.npm/npm/0.2.2/package/lib/utils/exec.js:24:18)
npm ERR! install failed at ChildProcess.emit (events:27:15)
npm ERR! install failed at ChildProcess.onexit (child_process:152:12)
npm ERR! install failed at node.js:608:9
npm info install failed rollback
npm info not installed mysql-libmysqlclient,1.0.0
npm info install failed rolled back
npm ERR! Error: mysql-libmysqlclient@1.0.0 preinstall: `node-waf configure build`
npm ERR! `sh` failed with 1
npm ERR! at ChildProcess.<anonymous> (/usr/local/node/lib/node/.npm/npm/0.2.2/package/lib/utils/exec.js:24:18)
npm ERR! at ChildProcess.emit (events:27:15)
npm ERR! at ChildProcess.onexit (child_process:152:12)
npm ERR! at node.js:608:9
npm ERR! try running: 'npm help install'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
npm not ok
continuity:~ ben$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment