From: Marko Schulz Date: 2003-08-07T06:25:45+09:00 Subject: Re: - where does it get its initial values? On Thu, Aug 07, 2003 at 05:33:51AM +0900, Gennady wrote: > They are figured out during Ruby build by configure and then hardcoded into > the resulting executable. If your ruby is installed in /usr/local you can > check it with > > $ strings /usr/local/bin/ruby | grep /usr/local > /usr/local/lib/ruby/site_ruby/1.6 : How do you know, all strings with /usr/local in the ruby-executable make up this path? Isn't easier, just to print out $: without any -I or RUBYLIB? $ (unset RUBYLIB; ruby -e 'p $:') ["/usr/local/lib/site_ruby/1.6", "/usr/local/lib/site_ruby/1.6/i386-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/1.6", "/usr/lib/ruby/1.6/i386-linux", "."] -- marko schulz