in reply to Re: Re: Setting env vars in current process
in thread Setting env vars in current process

Perhaps you should have shown some code.
If you're doing something like
$ENV{'LD_LIBRARY_PATH'} = '/...'; use XML::LibXML;
then the problem may be that the envar isn't getting set until after the library gets loaded. In which case, try
BEGIN { $ENV{'LD_LIBRARY_PATH'} = '/...'; } use XML::LibXML;

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.

Replies are listed 'Best First'.
Re: Re: Re: Re: Setting env vars in current process
by ruscoekm (Monk) on Feb 11, 2003 at 20:11 UTC
    No, that is not the issue. The problem is specific to the loader's caching of LD_LIBRARY_PATH. Replies above have links to solutions.