in reply to (tye)Re: programatically setting the LD_LIBRARY_PATH
in thread programatically setting the LD_LIBRARY_PATH

What if your Perl program uses system to call an executable program, which is the one that needs the library? Will setting LD_LIBRARY_PATH in the Perl code work then?
  • Comment on Re^2: programatically setting the LD_LIBRARY_PATH

Replies are listed 'Best First'.
Re^3: programatically setting the LD_LIBRARY_PATH
by runrig (Abbot) on Aug 09, 2013 at 17:30 UTC
    Did you try it? Anyway, the answer should be yes. I have a few functions that go something like:
    sub exec_something { local $ENV{LD_LIBARY_PATH} = "...."; system some_command => @args; }