From: Michael Guterl Date: 2008-10-23T04:01:40+09:00 Subject: Re: $LOAD_PATH and different OSes On Wed, Oct 22, 2008 at 2:30 PM, Greg Willits wrote: > Martin Boese wrote: >> I suggest to use rubygems, even if you don't write libraries or plan to >> publish your program. > > I have considered gems (still unsure how to 'serve' them privately), but > since you brought it up, the scenario that prompted this message was > that it was precisely an installed gem that was causing my problems -- > the mysql one. > > I installed it on a fresh server and discovered that it was not > automatically being found (but it was being found on my dev box). I > output $LOAD_PATH and AFAICT there were no paths that pointed to any GEM > folders, so I am having to do that manually in my app code. > Make sure you're doing "require 'rubygems'" at the top of your script in question. You could also check the environment variable RUBYOPT, you can use it to automatically require rubygems. RUBYOPT='rubygems' HTH, Michael Guterl