From: GGarramuno@... (GGarramuno) Date: 2004-03-20T07:34:32+09:00 Subject: Re: Can $LOAD_PATH be relative? ptkwt@aracnet.com (Phil Tomson) wrote in message news:... > Question based on an assertion made in another thread... > > I was under the impression that $LOAD_PATH is relative to the current > location of the ruby executable. On Windows this certainly seems to be > the case. I can move ruby.exe and see that $LOAD_PATH changes. > > However, on Linux this doesn't seem to be the case, no matter where I put > the ruby binary, $LOAD_PATH points to /usr/local/lib/ruby/... > > Is there anyway to make $LOAD_PATH relative on Linux (and I suspect also > on Windows if you use MingW to compile) just as it is on the Windows > mswin32 build? > > ...I'm hoping this is just a configure command-line switch since I need to > put the Ruby binary and some libs on a CDROM and have it execute from > there. > > Phil In a shell window, set the environment variable RUBYLIB with the list of paths you want to use.