I ran npm rebuild. Things seem to work without any fatal errors. I run the previous line of code again - I still get the same error.
On Wednesday, February 4, 2015 at 11:20:03 AM UTC-5, Aria Stewart wrote: > > > On Feb 4, 2015, at 11:08 AM, [email protected] <javascript:> 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/53f76c2c-f58d-4773-9d87-e08718838437%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
