I’m a Richardson, RU?

08 Feb, 2008

“sudo gem update rails” doesn’t work

Posted by: imarichardson In: Programming & Development

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

No Responses to "“sudo gem update rails” doesn’t work"

Comment Form

You must be logged in to post a comment.

I'mARichardson Who?

Who am I? Well, let's see: I'm a husband, father, brother, God-father, down to earth, relaxed, happy kinda guy who likes clean code, long walks on the beach, takes his laptop with him everywhere he goes, and (as I'd like to think) all around good guy!