My friends and family are under attack in Ukraine. Donate to protect them directly or help international organizations.

Updating RubyGem on OSX

July 28th, 2011

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

Previous: Public Call for Papers: What Does That Mean? Next: Their Programming Language Sucks!