“sudo gem update rails” doesn’t work

I’ve finally gotten to a point where I have been ready to upgrade to Rails 2.0.2 on one of my production machines (running Red Hat Enterprise 5). I ran into a little snag in that when trying to update rails; no error or anything, just a response that Rails 1.2.3 was installed:

  1. -bash-3.1$ sudo gem update rails
  2. Password:
  3. Updating installed gems...
  4. Attempting remote update of rails
  5. Successfully installed rails-2.0.2
  6. Gems: [rails] updated

In order to get things working right I had to update the system files so everything would run:

  1. -bash-3.1$ sudo gem update --system
  2. Updating RubyGems...
  3. Attempting remote update of rubygems-update
  4. Successfully installed rubygems-update-0.9.4
  5. Updating version of RubyGems to 0.9.4
  6. Installing RubyGems 0.9.4

Now running the update works.

  1. -bash-3.1$ sudo gem update -y rails
  2. Updating installed gems...
  3. Bulk updating Gem source index for: http://gems.rubyforge.org
  4. Attempting remote update of rails
  5. ---------- this is where all the dependencies are updated ------------
  6. Gems: [rails] updated

Leave a Reply

You must be logged in to post a comment.