From: Tim Hunter Date: 2008-06-25T03:16:52+09:00 Subject: Re: require is not the same in irb as in ruby? Gregory Marton wrote: > Interesting... > > I guessed that maybe the fact that I was using /usr/bin/ruby and there > was a separate /usr/local/bin/ruby might be a problem. They are the > same version > ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] > > and in fact, one turns out to be a symlink to the other(!) but using > /usr/bin/ruby in the shebang fails, while using /usr/local/bin/ruby in > the shebang succeeds. > > Any ideas? > > Thanks, > Grem Print the value of $: to determine the directories in which Ruby will look for libraries. Those directories are largely determined by the directory in which Ruby is installed at the time Ruby is installed. If Ruby is actually installed in /usr/local then it won't search for libraries in /usr. Good luck! -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html