I'm running Ubuntu 9.10. I am getting started with ruby on rails development and would like to make sure my system is up to date.
This is what I've found out so far:
$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
$ which gem
/usr/bin/gem
$ gem -v
1.0.1
$ which rails
/usr/bin/rails
$ rails -v
Rails 2.2.2
$ gem install sqlite3-ruby
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: could not find sqlite3-ruby locally or in a repository
Solution:
Ruby 1.8.7 is a current version. My version of RubyGems needs to be updated. So does Rails. I will need to update RubyGems before I can update Rails.
From the RubyGems User Guide:
If your RubyGems version is 0.8.5 or later, you can upgrade to the latest version with:
sudo gem update --system
If your current version of RubyGems is older than version 0.8.5, or you see the message “Nothing to update” when you tried gem update --system
, then use the following commands:
sudo gem install rubygems-update
sudo update_rubygems
Now that RubyGems is up to date, we can update Rails. To update Rails, as well as all the other gems, use the following command:
sudo gem update
To see which Gems you have installed, you can run this command:
gem list --local
To install a new Gem, or see which Gems are available to install, see this page of the RubyGems guide