I spent literally days trying to install ruby 1.9.2 and make it work with precious stones: - / In the end, I abandoned my Mac OSX machine 10.6 and below - the current state on my Ubuntu machine. Any advice would be greatly appreciated!
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- mongo (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from test.rb:1:in `<main>'
require 'mongo'
db = Mongo::Connection.new.db("mydb")
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/mongo-1.1.2/lib/mongo.rb
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
According to this page: http://docs.rubygems.org/read/chapter/19
I indicated which ruby I used to match the one that uses the stone:
/usr/local/rvm/bin/ruby
lrwxrwxrwx 1 root root 44 2010-11-17 13:25 /usr/local/rvm/bin/ruby -> /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby
/usr/local/rvm/bin/gem
1.3.7
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
source
share