Skip to content

Instantly share code, notes, and snippets.

@pennyfx
Created May 16, 2011 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pennyfx/973870 to your computer and use it in GitHub Desktop.
Save pennyfx/973870 to your computer and use it in GitHub Desktop.
mongodb install fail
arron@ubuntu11:~/programming/backbone$ npm install mongodb
> mongodb@0.9.4-3 install /home/arron/programming/backbone/node_modules/mongodb
> bash ./install.sh
./install.sh: line 2: [: too many arguments
Not building native library for cygwin
make -C ./external-libs/bson
make[1]: Entering directory `/home/arron/programming/backbone/node_modules/mongodb/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.024s)
Waf: Entering directory `/home/arron/programming/backbone/node_modules/mongodb/external-libs/bson/build'
[1/9] cxx: bson.cc -> build/default/bson_1.o
../bson.cc:43:1: warning: this decimal constant is unsigned only in ISO C90
[2/9] cxx: long.cc -> build/default/long_1.o
../long.cc:18:1: warning: this decimal constant is unsigned only in ISO C90
../long.cc:19:1: warning: this decimal constant is unsigned only in ISO C90
[3/9] cxx: objectid.cc -> build/default/objectid_1.o
[4/9] cxx: binary.cc -> build/default/binary_1.o
[5/9] cxx: code.cc -> build/default/code_1.o
[6/9] cxx: dbref.cc -> build/default/dbref_1.o
[7/9] cxx: timestamp.cc -> build/default/timestamp_1.o
../timestamp.cc:18:1: warning: this decimal constant is unsigned only in ISO C90
../timestamp.cc:19:1: warning: this decimal constant is unsigned only in ISO C90
[8/9] cxx: local.cc -> build/default/local_1.o
[9/9] cxx_link: build/default/bson_1.o build/default/long_1.o build/default/objectid_1.o build/default/binary_1.o build/default/code_1.o build/default/dbref_1.o build/default/timestamp_1.o build/default/local_1.o -> build/default/bson.node
Waf: Leaving directory `/home/arron/programming/backbone/node_modules/mongodb/external-libs/bson/build'
'build' finished successfully (2.311s)
=== EXCEUTING TEST_BSON ===
node: ../src/node.cc:1212: ssize_t node::DecodeWrite(char*, size_t, v8::Handle<v8::Value>, node::encoding): Assertion `b[1] == 0' failed.
make[1]: *** [all] Aborted
make[1]: Leaving directory `/home/arron/programming/backbone/node_modules/mongodb/external-libs/bson'
make: *** [build_native] Error 2
npm ERR! error installing mongodb@0.9.4-3 Error: mongodb@0.9.4-3 install: `bash ./install.sh`
npm ERR! error installing mongodb@0.9.4-3 `sh "-c" "bash ./install.sh"` failed with 2
npm ERR! error installing mongodb@0.9.4-3 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing mongodb@0.9.4-3 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing mongodb@0.9.4-3 at ChildProcess.onexit (child_process.js:246:12)
npm ERR! mongodb@0.9.4-3 install: `bash ./install.sh`
npm ERR! `sh "-c" "bash ./install.sh"` failed with 2
npm ERR!
npm ERR! Failed at the mongodb@0.9.4-3 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! bash ./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!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "mongodb"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/arron/programming/backbone/npm-debug.log
npm not ok
@christkv
Copy link

what version of node, os. It will only work for 0.4.X 0.5pre is not supported

@pennyfx
Copy link
Author

pennyfx commented May 17, 2011

oh, i'm using 0.5.0-pre on ubuntu 11.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment