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:
- -bash-3.1$ sudo gem update rails
- Password:
- Updating installed gems...
- Attempting remote update of rails
- Successfully installed rails-2.0.2
- Gems: [rails] updated
In order to get things working right I had to update the system files so everything would run:
- -bash-3.1$ sudo gem update --system
- Updating RubyGems...
- Attempting remote update of rubygems-update
- Successfully installed rubygems-update-0.9.4
- Updating version of RubyGems to 0.9.4
- Installing RubyGems 0.9.4
Now running the update works.
- -bash-3.1$ sudo gem update -y rails
- Updating installed gems...
- Bulk updating Gem source index for: http://gems.rubyforge.org
- Attempting remote update of rails
- ---------- this is where all the dependencies are updated ------------
- Gems: [rails] updated
Feedback