Created
April 14, 2011 03:52
-
-
Save hagino3000/918857 to your computer and use it in GitHub Desktop.
Failed install node-mongodb-native (MacOSX)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`--> sudo npm install mongodb | |
npm info it worked if it ends with ok | |
npm info using npm@0.3.18 | |
npm info using node@v0.4.2 | |
npm info preinstall mongodb@0.9.2 | |
npm info install mongodb@0.9.2 | |
uname: illegal option -- o | |
usage: uname [-amnprsv] | |
Not building native library for cygwin | |
make -C ./external-libs/bson | |
rm -rf build .lock-wscript bson.node | |
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/local | |
'configure' finished successfully (0.193s) | |
Waf: Entering directory `/usr/local/lib/node/.npm/mongodb/0.9.2/package/external-libs/bson/build' | |
[1/9] cxx: bson.cc -> build/default/bson_1.o | |
[2/9] cxx: long.cc -> build/default/long_1.o | |
<built-in>:0: error: Unknown value ‘4294967306.4294967302’ of -mmacosx-version-min | |
<built-in>:0: error: Unknown value ‘4294967306.4294967302’ of -mmacosx-version-min | |
Waf: Leaving directory `/usr/local/lib/node/.npm/mongodb/0.9.2/package/external-libs/bson/build' | |
Build failed: | |
-> task failed (err #1): | |
{task: cxx long.cc -> long_1.o} | |
-> task failed (err #1): | |
{task: cxx bson.cc -> bson_1.o} | |
make[1]: *** [all] Error 1 | |
make: *** [build_native] Error 2 | |
npm info mongodb@0.9.2 Failed to exec install script | |
npm ERR! install failed Error: mongodb@0.9.2 install: `./install.sh` | |
npm ERR! install failed `sh "-c" "./install.sh"` failed with 2 | |
npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20) | |
npm ERR! install failed at ChildProcess.emit (events.js:45:17) | |
npm ERR! install failed at ChildProcess.onexit (child_process.js:171:12) | |
npm info install failed rollback | |
npm info uninstall [ 'mongodb@0.9.2' ] | |
npm info preuninstall mongodb@0.9.2 | |
npm info uninstall mongodb@0.9.2 | |
npm info auto-deactive not symlink | |
npm info postuninstall mongodb@0.9.2 | |
npm info uninstall mongodb@0.9.2 complete | |
npm info install failed rolled back | |
npm ERR! Error: mongodb@0.9.2 install: `./install.sh` | |
npm ERR! `sh "-c" "./install.sh"` failed with 2 | |
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20) | |
npm ERR! at ChildProcess.emit (events.js:45:17) | |
npm ERR! at ChildProcess.onexit (child_process.js:171:12) | |
npm ERR! | |
npm ERR! Failed at the mongodb@0.9.2 install script. | |
npm ERR! This is most likely a problem with the mongodb package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! ./install.sh | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls mongodb | |
npm ERR! There is likely additional logging output above. | |
npm ERR! System Darwin 10.7.0 | |
npm ERR! argv { remain: [ 'mongodb' ], | |
npm ERR! argv cooked: [ 'install', 'mongodb' ], | |
npm ERR! argv original: [ 'install', 'mongodb' ] } | |
npm not ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This errro caused by Python25. I tried after [sudo python_select python26] it works pretty good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! Saved me alot of time =)