Ruby Tip of The Day – Rubygems

I was having problems with Eclipse and some command line scipts seeing an installed gem. Basically I would require the gem, and it would come back saying “no such file to load“.

To fix this I had to specify in my environment RUBYOPT=-rubygems.

This has the effect of preloading all gems prior to execution. This of course reminds me of CLASSPATH one of the things I hate about Java.