> /dev/null

Interesting hacks, snippets, and shortcuts.

Dec 26

Rubygems failing with ruby 1.9.2

I spent a long time trying to figure this one out. If I tried to use rubygems at all with ruby 1.9.2 I got the following errors:

Turns out the solution is very simple. Check your RUBYLIB environment variable. Mine was for some reason set to /Library/Ruby/Site/1.8/ which cause gem to load the wrong rubygems library. The easiest way to get up and running is simply: