> On Feb 4, 2015, at 11:08 AM, [email protected] wrote: > > Hello, > > I installed mongodb (linux 64-bit version 2.6.7) - MongoDB seems to work > fine. I installed mongodb driver on Node v0.10.36 via npm install mongodb. > > I ran mongodb in /data/db directory. > > I got an error message: "[Error: > /data/projects/nodejs/mode_modules/mongodb/node_modules/bson/build/Release/bson.node: > invalid ELF header] js-bson: Failed to load c++ bson extension, using pure > JS version" when trying to execute the below one line of code via running > /data/projects/nodejs/tc4_mongodb_server.js: > > var mongo = require('mongodb').MongoClient; > > Please provide any suggestion(s) to fix this problem?
You might try running `npm rebuild`, and watch for any compilation errors during that. The error should not be fatal, since there's an all-javascript backup to the c++ bson module, but something's gone awry there. Make sure your c++ compiler works too. Aria -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/245D456E-DCEB-4158-BF5B-F8DB64A701EE%40nbtsc.org. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME cryptographic signature
