9 Feb 2011

Solve That Fubared Ruby Install

Rubygems
Sitting down to fiddle with a presentation tonight, I realized that my default Ruby and Gem install was so fucked up that I couldn't finagle the little OS X box to trudge on. So in a fit of defeat and an attitude that loves rebuilding things, I decided to start from scratch. But...I have never had this issue on a Mac (Ubuntu, sure, this shit happens...well) so I didn't know where to start. All you need to do is run these rm commands:

sudo rm -r /System/Library/Frameworks/Ruby.framework/

sudo rm -r /Library/Ruby

sudo rm /usr/bin/ruby

sudo rm /usr/bin/gem

Reinstall the little bugger with our favorite OS X package manager Homebrew and go drink an actual beer. Also you probably should install brewbygems to conveniently manage your gems like packages in Homebrew. Just sayin'