{"action":"created","issue":{"url":"https://api.github.com/repos/christkv/bson-ext/issues/12","labels_url":"https://api.github.com/repos/christkv/bson-ext/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/christkv/bson-ext/issues/12/comments","events_url":"https://api.github.com/repos/christkv/bson-ext/issues/12/events","html_url":"https://github.com/christkv/bson-ext/issues/12","id":72535966,"number":12,"title":"binding.gyp not found when building on Amazon Linux AMI","user":{"login":"jlines","id":1261309,"avatar_url":"https://avatars.githubusercontent.com/u/1261309?v=3","gravatar_id":"","url":"https://api.github.com/users/jlines","html_url":"https://github.com/jlines","followers_url":"https://api.github.com/users/jlines/followers","following_url":"https://api.github.com/users/jlines/following{/other_user}","gists_url":"https://api.github.com/users/jlines/gists{/gist_id}","starred_url":"https://api.github.com/users/jlines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlines/subscriptions","organizations_url":"https://api.github.com/users/jlines/orgs","repos_url":"https://api.github.com/users/jlines/repos","events_url":"https://api.github.com/users/jlines/events{/privacy}","received_events_url":"https://api.github.com/users/jlines/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T22:14:11Z","updated_at":"2015-05-06T16:25:50Z","closed_at":null,"body":"Here are the contents of the builderror.log files. Has anyone see this issue before? It looks like its trying to run mac specific code for some reason.\r\n\r\n./application/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/builderror.log\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\r\n\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\r\n\r\n./application/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/builderror.log\r\ngyp: binding.gyp not found (cwd: /tmp/deployment/application/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson) while trying to load binding.gyp\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Linux 3.14.35-28.38.amzn1.x86_64\r\ngyp ERR! command \"node\" \"/opt/elasticbeanstalk/node-install/node-v0.12.2-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /tmp/deployment/application/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson\r\ngyp ERR! node -v v0.12.2\r\ngyp ERR! node-gyp -v v1.0.3\r\ngyp ERR! not ok\r\n\r\n\r\n  npm ERR! node v0.12.2\r\n  npm ERR! npm  v2.7.4\r\n  npm ERR! code ELIFECYCLE\r\n  npm ERR! bson-ext@0.1.3 install: `node-pre-gyp install --fallback-to-build`\r\n  npm ERR! Exit status 1"},"comment":{"url":"https://api.github.com/repos/christkv/bson-ext/issues/comments/99529090","html_url":"https://github.com/christkv/bson-ext/issues/12#issuecomment-99529090","issue_url":"https://api.github.com/repos/christkv/bson-ext/issues/12","id":99529090,"user":{"login":"skyle143","id":3374797,"avatar_url":"https://avatars.githubusercontent.com/u/3374797?v=3","gravatar_id":"","url":"https://api.github.com/users/skyle143","html_url":"https://github.com/skyle143","followers_url":"https://api.github.com/users/skyle143/followers","following_url":"https://api.github.com/users/skyle143/following{/other_user}","gists_url":"https://api.github.com/users/skyle143/gists{/gist_id}","starred_url":"https://api.github.com/users/skyle143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyle143/subscriptions","organizations_url":"https://api.github.com/users/skyle143/orgs","repos_url":"https://api.github.com/users/skyle143/repos","events_url":"https://api.github.com/users/skyle143/events{/privacy}","received_events_url":"https://api.github.com/users/skyle143/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T16:25:50Z","updated_at":"2015-05-06T16:25:50Z","body":"I'm seeing the exact same issue on amazon linux ami. To add a little more context, the app is build on a mac and deployed to elastic beanstalk. It then runs an npm rebuild (not npm install). That's when we get the following errors.\r\n\r\nHere is the output of npm-debug.log:\r\n\r\ninfo bson-ext@0.1.4 Failed to exec install script\r\nerror bson-ext@0.1.4 install: `node-pre-gyp install --fallback-to-build`\r\nerror Exit status 8\r\nerror Failed at the bson-ext@0.1.4 install script.\r\nerror This is most likely a problem with the bson-ext package,\r\nerror not with npm itself.\r\nerror Tell the author that this fails on your system:\r\nerror     node-pre-gyp install --fallback-to-build\r\nerror You can get their info via:\r\nerror     npm owner ls bson-ext\r\nerror There is likely additional logging output above.\r\nerror System Linux 3.10.57-57.140.amzn1.x86_64\r\nerror command \"/opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/node\" \"/opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/npm\" \"--production\" \"rebuild\"\r\nerror cwd /tmp/deployment/application\r\nerror node -v v0.10.26\r\nerror npm -v 1.4.4\r\nerror code ELIFECYCLE\r\n\r\n\r\nand for bson-ext/builderror.log\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\r\n\r\nxcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\r\n\r\n\r\nand for bson/builderror.log\r\ngyp: binding.gyp not found (cwd: /Users/jeff/sandbox/testBuild/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson) while trying to load binding.gyp\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\ngyp ERR! System Darwin 14.3.0\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/jeff/sandbox/testBuild/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson\r\ngyp ERR! node -v v0.10.36\r\ngyp ERR! node-gyp -v v1.0.1\r\ngyp ERR! not ok"}}