{"issue":{"state":"closed","created_at":"2011-09-22T15:48:21Z","updated_at":"2011-11-23T18:01:08Z","comments":12,"user":{"gravatar_id":"2b0af28fc454843f190c46077fa3d186","id":820090,"url":"https://api.github.com/users/DougieDCD","login":"DougieDCD","avatar_url":"https://secure.gravatar.com/avatar/2b0af28fc454843f190c46077fa3d186?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"npm ERR! db-mysql@0.6.7 install: `node-waf configure build`\r\nnpm ERR! `sh \"-c\" \"node-waf configure build\"` failed with 127\r\nnpm ERR!\r\nnpm ERR! Failed at the db-mysql@0.6.7 install script.\r\nnpm ERR! This is most likely a problem with the db-mysql package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-waf configure build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls db-mysql\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR!\r\nnpm ERR! System Linux 2.6.38-8-server\r\nnpm ERR! command \"node\" \"/usr/bin/npm\" \"install\" \"db-mysql\"\r\nnpm ERR! cwd /home/dndavies\r\nnpm ERR! node -v v0.4.12\r\nnpm ERR! npm -v 1.0.30\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /home/dndavies/npm-debug.log\r\nnpm not ok\r\n","assignee":{"gravatar_id":"2a4f4f2259921a89fbb16f44034f395a","id":18598,"url":"https://api.github.com/users/mariano","login":"mariano","avatar_url":"https://secure.gravatar.com/avatar/2a4f4f2259921a89fbb16f44034f395a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":1715256,"number":31,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Installation Error","closed_at":"2011-10-22T22:06:42Z","html_url":"https://github.com/mariano/node-db-mysql/issues/31","milestone":null,"url":"https://api.github.com/repos/mariano/node-db-mysql/issues/31"},"action":"created","comment":{"created_at":"2011-11-23T18:01:08Z","updated_at":"2011-11-23T18:01:08Z","user":{"gravatar_id":"7e0d2003216f5274e6f724cdf9293074","id":231569,"url":"https://api.github.com/users/aaronwest","login":"aaronwest","avatar_url":"https://secure.gravatar.com/avatar/7e0d2003216f5274e6f724cdf9293074?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm having the same issue attempting to install on OS X 10.6.8.\r\n\r\nMySQL 5.1.43\r\nnode.js v0.6.2\r\nnpm 1.0.106\r\n\r\nI followed the install instructions which said to add an env variable MYSQL_CONFIG pointing to /usr/local/mysql/bin/mysql_config. I added this to my bash_profile and then source'd the file and verified echo $MYSQL_CONFIG prints out appropriately.\r\n\r\nI then did sudo npm install -g db-mysql. NOTE: I also checked ticket #32 because it's essentially the same error.\r\n\r\nHere's the last part of npm-debug.log in my project directory starting where the error occurred:\r\n\r\ninfo install db-mysql@0.7.6\r\nverbose unsafe-perm in lifecycle false\r\nverbose Setting uid from 0 nobody\r\nverbose stack at uid setting Error\r\nverbose stack at uid setting     at exec (/usr/local/lib/node_modules/npm/lib/utils/exec.js:35:17)\r\nverbose stack at uid setting     at Array.0 (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:127:5)\r\nverbose stack at uid setting     at EventEmitter._tickCallback (node.js:192:40)\r\nsilly exec sh \"-c\" \"node-waf configure build\"\r\nsilly spawning [ 'sh',\r\nsilly spawning   [ '-c', 'node-waf configure build' ],\r\nsilly spawning   '/usr/local/lib/node_modules/db-mysql' ]\r\ninfo db-mysql@0.7.6 Failed to exec install script\r\nERR! error installing db-mysql@0.7.6 Error: db-mysql@0.7.6 install: `node-waf configure build`\r\nERR! error installing db-mysql@0.7.6 `sh \"-c\" \"node-waf configure build\"` failed with 1\r\nERR! error installing db-mysql@0.7.6     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)\r\nERR! error installing db-mysql@0.7.6     at ChildProcess.emit (events.js:70:17)\r\nERR! error installing db-mysql@0.7.6     at maybeExit (child_process.js:359:16)\r\nERR! error installing db-mysql@0.7.6     at Process.onexit (child_process.js:395:5)\r\ninfo unbuild /usr/local/lib/node_modules/db-mysql\r\nverbose from cache /usr/local/lib/node_modules/db-mysql/package.json\r\ninfo preuninstall db-mysql@0.7.6\r\nverbose unsafe-perm in lifecycle false\r\nverbose Setting uid from 0 nobody\r\nverbose stack at uid setting Error\r\nverbose stack at uid setting     at exec (/usr/local/lib/node_modules/npm/lib/utils/exec.js:35:17)\r\nverbose stack at uid setting     at Array.0 (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:127:5)\r\nverbose stack at uid setting     at EventEmitter._tickCallback (node.js:192:40)\r\nsilly exec sh \"-c\" \"rm -rf build/*\"\r\nsilly spawning [ 'sh',\r\nsilly spawning   [ '-c', 'rm -rf build/*' ],\r\nsilly spawning   '/usr/local/lib/node_modules/db-mysql' ]\r\ninfo uninstall db-mysql@0.7.6\r\nverbose unbuild db-mysql@0.7.6 [ true,\r\nverbose unbuild db-mysql@0.7.6   '/usr/local/lib/node_modules',\r\nverbose unbuild db-mysql@0.7.6   '/usr/local/lib/node_modules' ]\r\ninfo postuninstall db-mysql@0.7.6\r\nverbose installOne cb db-mysql@0.7.6\r\nERR! db-mysql@0.7.6 install: `node-waf configure build`\r\nERR! `sh \"-c\" \"node-waf configure build\"` failed with 1\r\nERR! \r\nERR! Failed at the db-mysql@0.7.6 install script.\r\nERR! This is most likely a problem with the db-mysql package,\r\nERR! not with npm itself.\r\nERR! Tell the author that this fails on your system:\r\nERR!     node-waf configure build\r\nERR! You can get their info via:\r\nERR!     npm owner ls db-mysql\r\nERR! There is likely additional logging output above.\r\nERR! \r\nERR! System Darwin 10.8.0\r\nERR! command \"node\" \"/usr/local/bin/npm\" \"install\" \"-g\" \"db-mysql\"\r\nERR! cwd /Users/aaron/Sites/nodesite\r\nERR! node -v v0.6.2\r\nERR! npm -v 1.0.106\r\nERR! code ELIFECYCLE\r\nverbose exit [ 1, true ]","id":2852266,"url":"https://api.github.com/repos/mariano/node-db-mysql/issues/comments/2852266"}}