Matt Connolly's Blog

my brain dumps here…

Mac OS X SnowLeopard upgrading RubyGems

I looked around for a while on how to upgrade ruby gems to >= 1.3.6 so I could install rails 3 on Mac OS X 10.6 Snow Leopard.

It’s actually really easy:

$ sudo gem install rubygems-update
Successfully installed rubygems-update-1.6.2
Successfully installed rubygems-update-1.6.2
1 gem installed
Installing ri documentation for rubygems-update-1.6.2...
Installing RDoc documentation for rubygems-update-1.6.2...
$ sudo gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.6.2
Updating RubyGems to 1.6.2
Installing RubyGems 1.6.2
RubyGems 1.6.2 installed

=== 1.6.2 / 2011-03-08

Bug Fixes:

* require of an activated gem could cause activation conflicts.  Fixes
  Bug #29056 by Dave Verwer.
* `gem outdated` now works with up-to-date prerelease gems.

------------------------------------------------------------------------------

RubyGems installed the following executables:
	/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem

$ gem -v
1.6.2

Done. Easy as.

Advertisements

11 responses to “Mac OS X SnowLeopard upgrading RubyGems

  1. Yudhi K.S 9 July, 2011 at 23:47

    Thanks, it’s help me a lot.

  2. Pingback: pinboard November 18, 2011 — arghh.net

  3. anonymous 6 June, 2012 at 13:42

    thank you so much for this post!

  4. anonymous 15 June, 2012 at 07:49

    Thank you!

  5. Kou 6 August, 2012 at 22:23

    Thx dude 🙂

  6. ... 2 January, 2013 at 10:06

    Thx a lot! Worked like a charm! :o)

  7. Hanjun Xian (@hanjunxian) 14 February, 2013 at 13:27

    Thanks! So useful. You save my evening 🙂

  8. Ross Light 3 January, 2014 at 05:11

    Apple recommends that you don’t do this. This is really bad advice, since it will overwrite your Ruby in your /System/Library/, which is potentially harmful to other system tasks that depend on Ruby.

    http://support.apple.com/kb/TS4042

  9. Gabriel 31 January, 2014 at 22:23

    Thanks for the tip!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: