Skip to content

Instantly share code, notes, and snippets.

@gerad
Created March 10, 2011 17:24
Show Gist options
  • Save gerad/864502 to your computer and use it in GitHub Desktop.
Save gerad/864502 to your computer and use it in GitHub Desktop.
npm install mongodb fails on no.de
[node@gerad ~]$ npm install mongodb
npm info it worked if it ends with ok
npm info using npm@0.3.15
npm info using node@v0.4.1
npm info fetch http://registry.npmjs.org/mongodb/-/mongodb-0.9.1.tgz
npm info calculating sha1 /tmp/npm-1299777263646/1299777263646-0.11996227549389005/tmp.tgz
npm info shasum 0b4c97289d9c88fc726a9993a8632d2ebe3284d6
npm info calculating sha1 /home/node/.node_libraries/.npm/.cache/mongodb/0.9.1/package.tgz
npm info shasum 5ea811dd1b55ae50b5ebda38c853e7548c7d86db
npm info preinstall mongodb@0.9.1
npm info install mongodb@0.9.1
./install.sh: line 2: [: too many arguments
Not building native library for cygwin
make -C ./external-libs/bson
make[1]: Entering directory `/home/node/.node_libraries/.npm/mongodb/0.9.1/package/external-libs/bson'
rm -rf build .lock-wscript bson.node
node-waf configure build
Checking for program g++ or c++ : not found
Checking for program c++ : not found
/home/node/.node_libraries/.npm/mongodb/0.9.1/package/external-libs/bson/wscript:19: error: could not configure a cxx compiler!
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/node/.node_libraries/.npm/mongodb/0.9.1/package/external-libs/bson'
make: *** [build_native] Error 2
npm info mongodb@0.9.1 Failed to exec install script
npm ERR! install failed Error: mongodb@0.9.1 install: `./install.sh`
npm ERR! install failed `sh "-c" "./install.sh"` failed with 2
npm ERR! install failed at ChildProcess.<anonymous> (/home/node/.node_libraries/.npm/npm/0.3.15/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.1' ]
npm info preuninstall mongodb@0.9.1
npm info uninstall mongodb@0.9.1
npm info auto-deactive not symlink
npm info postuninstall mongodb@0.9.1
npm info uninstall mongodb@0.9.1 complete
npm info install failed rolled back
npm ERR! Error: mongodb@0.9.1 install: `./install.sh`
npm ERR! `sh "-c" "./install.sh"` failed with 2
npm ERR! at ChildProcess.<anonymous> (/home/node/.node_libraries/.npm/npm/0.3.15/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.1 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 SunOS 5.11
npm ERR! argv { remain: [ 'mongodb' ],
npm ERR! argv cooked: [ 'install', 'mongodb' ],
npm ERR! argv original: [ 'install', 'mongodb' ] }
npm not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment