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

Nope, I only wanted to change the current process env. People seem pretty confident that you can do this. (So was I until just now!!) As discussed in reply above, I will just have to work out what else is wrong with my setting LD_LIBRARY_PATH for XML::LibXML. Cheers Kevin
  • Comment on Re: Re: Setting env vars in current process

Replies are listed 'Best First'.
Re: Re: Re: Setting env vars in current process
by jdporter (Paladin) on Feb 11, 2003 at 19:48 UTC
    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.

      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.