Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 chanting in the Monastery: (2)
As of 2024-06-15 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.