From: Garry Offord Date: 2008-06-10T00:04:46+09:00 Subject: Re: changing the environment for current process ------=_Part_18335_30556821.1213023690501 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline When I have wanted to make sure that the lib subdir of the directory from which the program executes is added to the load path, I use this: # # make sure we can pull in anything under the directory where the program is # being executed # $LOAD_PATH << File::join(File::dirname($0), "lib") seems to work for me. On Sun, Jun 8, 2008 at 6:53 AM, Tammo Tjarks wrote: > I have the following situation: > I require an additional library, not part of the current search path. > I have done that simply by: > $:.push() > and that would work fine if I would not need shared libs. I tried > to simply set > ENV['LD_LIBRARY_PATH'] = ENV['LD_LIBRAY_PATH']+':'+ > but that seems not to work, the shared library is not found. > It only works when I make an > setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH: > before I start the script. Is there a way to modify the > environment for the current ruby process? > I would like to have the possibilites usually enabled by > module ( a tool where the environment can be altered with , where no ruby > support seems to exist). > > Regards, > Tammo > > ------=_Part_18335_30556821.1213023690501--