Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: programatically setting the LD_LIBRARY_PATH

by shagbark (Acolyte)
on Aug 09, 2013 at 17:17 UTC ( [id://1048800]=note: print w/replies, xml ) Need Help??


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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1048800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found