From: "Peña, Botp" Date: 2007-11-22T13:12:54+09:00 Subject: Re: Read last line of a file On Behalf Of Shuaib Zahda # So, I can conclude that I have to call rubygems then I call the elif. yes, and for any gem you want to load for that matter. but if you always need a gem, you can create an env var RUBYOPT and set it to rubygems, like export RUBYOPT=rubygems note that i seldom do this since rubygems loads a lot of things (observe your $"). i wish rubygems has something like, require "rubygems-base" wc just installs the basic gem needed to find the needed gem paths.. kind regards -botp