Home > Uncategorized > Updating RubyGem on OSX

Updating RubyGem on OSX

No gem would install on my machine because my RubyGem was outdated and rubyforge.org kept returning 302 (redirect) status code. After trying every recipe to update RubyGem on Mac OSX that I had the patience for, I came up with my own solution.

Failed attempts

sudo ruby ~/Downloads/rubygems-1.8.6/setup.rb
sudo gem update --system
sudo gem install rubygems-update --source http://production.s3.rubygems.org/
update_rubygems

Successful attempt

sudo gem update --system --source http://production.s3.rubygems.org/yaml
Tags:
  1. No comments yet.
  1. No trackbacks yet.