Encounter dependencies error in installing ruby driver for mongodb

14 views
Skip to first unread message

Andrew Ching

unread,
Jan 8, 2012, 4:34:11 PM1/8/12
to mongodb-dev
Hi Support,

Being a newbiz in using ruby and rubygem, I have the steps to install
mongodb and ruby, but encounter errors, pls help to verify the steps

machine: RHEL 5 on x86-64 in one VM

steps -

1. download and install mongodb-linux-x86_64-2.0.2 on linux VM box

2. mongodb install and run successfully and version as 2.0.2

3. download and install Ruby - ruby-1.9.3-p0

4. Confirm the Ruby version after install
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

5. download and install rubygem - rubygems-1.8.12
[root@bigdata ~]# gem -v
1.8.12

gem list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)

6. cos no internet access, mongodb running in vm server, there is no
mongodb in gem repository, so I download the gem file -
mongodb-2.0.2.gem. Install the mongodb as - gem install mongodb -v
2.0.2. Error came out as
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: mongodb requires mongo (~> 1.4)

any steps wrong and juz ask how to proceed !!!.

Regards,
Andrew

Kyle Banker

unread,
Jan 8, 2012, 7:04:55 PM1/8/12
to mongo...@googlegroups.com

The gem you need is called mongo, not mongodb. You'll also want the bson and bson_ext gems, all version 1.5.2.

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To post to this group, send email to mongo...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.

Andrew Ching

unread,
Jan 8, 2012, 10:26:36 PM1/8/12
to mongo...@googlegroups.com
Hi Kyle, 

Can u share the link to the gem download when the mongo version already installed in v2.0.2?

Thanks,

Regards,
Andrew

Kyle Banker

unread,
Jan 9, 2012, 12:27:10 AM1/9/12
to mongo...@googlegroups.com

Andrew Ching

unread,
Jan 9, 2012, 3:17:35 AM1/9/12
to mongo...@googlegroups.com
Hi Kyle, 

Thanks for your support and it works well.

However, is 1.5.2 is the version of mango db supported by ruby driver or 1.5.2. is the driver version to support mongo 2.0.2? 

Thanks,

Regards,
Andrew

Kyle Banker

unread,
Jan 9, 2012, 7:23:22 AM1/9/12
to mongo...@googlegroups.com

Hi Andrew,

1.5.2 is the latest driver and it works with all versions.of mongodb

Andrew Ching

unread,
Jan 9, 2012, 11:29:01 AM1/9/12
to mongo...@googlegroups.com
HI Kyle, 

Thanks for your support.


Best Regards,
Andrew
Reply all
Reply to author
Forward
0 new messages