I am new to Linux (using Ubuntu 10.10). I had a problem installing Rails 3.0.5 in the correct gem directory.
I have a Ruby root installation (1.8.7) that I accidentally installed (which probably had a gem version with it) and RVM that I specifically installed to control Ruby versions. I can by default use the Ruby version using RVM, no problem.
But when I try to set rails using the command:
gem install rails
he sets the rails in the root stone directory: /var/lib/gems/1.8/gems
but instead I want to install the rails in the RVM directory: /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems
Some of them, even after doing sudo apt-get purge ruby rubygems . The bad stone is still there. I define this by executing whereis gem (correct function?). Which returns /usr/bin/gem1.8 /usr/bin/gem /usr/share/man/man1/gem.1.gz
Now, how do I get rid of a bad gem and install the right gem in RVM?
By the way, my GEM_PATH /home/me/.rvm/gems/ ruby-1.9.2-p180@rails3 :/home/me/.rvm/gems/ ruby-1.9.2-p180@global : makes this more cryptic.
Any suggestion is appreciated,
Thanks :)
source share