From: Ben Giddings Date: 2003-08-07T05:57:33+09:00 Subject: Re: - where does it get its initial values? On Wed August 6 2003 4:33 pm, 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 > /usr/local/lib/ruby/site_ruby/1.6/i686-linux > /usr/local/lib/ruby/site_ruby > /usr/local/lib/ruby/1.6 > /usr/local/lib/ruby/1.6/i686-linux > /usr/local/bin:/usr/ucb:/usr/bin:/bin:. This may have been the cause of problems I had when using ruby-mysql. My Ruby binary was compiled for generic i386, but mysql was compiled for i686 so it wanted to go in /usr/local/lib/ruby/site_ruby/i686-linux. The end result was that I had an i386-linux and an i686-linux directory, but only one was being searched. I got around that by using -I and/or setting an environment variable... but it seems like it should be possible for Ruby to "figure this out". Am I asking too much of it? Ben