Problem with MongoDB Ruby Driver

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-04-29T21:56:02Z Indexed on 2010/04/29 21:57 UTC
Read the original article Hit count: 355

Filed under:
|

I'm on Ubuntu, and I've done

install gem mongo

which reported

Successfully installed bson-1.0
Successfully installed mongo-1.0
2 gems installed

I've started mongod

Now I cd to the mongo gem directory and try

> ruby examples/simple.rb

and I get the error

./examples/../lib/mongo.rb:31:in `require': no such file to load -- bson (LoadError)
    from ./examples/../lib/mongo.rb:31
    from examples/simple.rb:3:in `require'
    from examples/simple.rb:3

which I can't make sense of, since the bson gem is installed

> gem list
*** LOCAL GEMS ***

bson (1.0)
bson_ext (1.0)
mongo (1.0)
rack (1.1.0)
sinatra (1.0)

Any suggestions what's up here?

© Stack Overflow or respective owner

Related posts about mongodb

Related posts about ruby