From: Gennady Date: 2003-08-07T06:35:43+09:00 Subject: Re: - where does it get its initial values? ----- Original Message ----- From: "Marko Schulz" To: "ruby-talk ML" Sent: Wednesday, August 06, 2003 2:25 PM 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? I did not mention that they ALL make up LOADPATH, I just showed the way to see that whatever makes up the default path is hardcoded during make process. > > $ (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", "."] > The original question was just this: why $: is what it is? > -- > marko schulz > >