Installing Ruby 1.8.6 And RubyGems On OSX (Snow Leopard) With RVM

RubyGems no longer supports Ruby v1.8.6, so when I tried to install 1.8.6 on my Macbook, via RVM, I ran into this nice little error message:

Screen shot 2011 03 14 at 8 49 58 AM

The interesting bit is that ruby itself installed. It’s only RubyGems that didn’t install correctly. Parts of rubygems were installed, and I could run the “gem” command, but I would get errors with any ruby code that needed rubygems to be around.

The fix is pretty simple: install a compatible version of rubygems, manually.

Head over to http://rubyforge.org/frs/?group_id=126 and grab the version of rubygems that you want. I went with 1.4.2 even though the blog post I linked to says it won’t work. It does. Drop the .tgz file on your computer somewhere and unpack it:

tar xvf rubygems-1.4.2-tgz

Then be sure you are using the correct version of ruby in rvm:

rvm use 1.8.6

And install rubygems:

cd rubygems-1.4.2
ruby setup.rb

and that’s it! I now have ruby 1.8.6 with rubygems 1.4.2 running on OSX. I’ve installed gems and verified that my apps work, too.


Post Footer automatically generated by Add Post Footer Plugin for wordpress.

About Derick Bailey

Derick Bailey is an entrepreneur, problem solver (and creator? :P ), software developer, screecaster, writer, blogger, speaker and technology leader in central Texas (north of Austin). He runs SignalLeaf.com - the amazingly awesome podcast audio hosting service that everyone should be using, and WatchMeCode.net where he throws down the JavaScript gauntlets to get you up to speed. He has been a professional software developer since the late 90's, and has been writing code since the late 80's. Find me on twitter: @derickbailey, @mutedsolutions, @backbonejsclass Find me on the web: SignalLeaf, WatchMeCode, Kendo UI blog, MarionetteJS, My Github profile, On Google+.
This entry was posted in OSX, Ruby. Bookmark the permalink. Follow any comments here with the RSS feed for this post.