Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: programatically setting the LD_LIBRARY_PATH

by aveckey (Novice)
on Aug 30, 2019 at 20:49 UTC ( [id://11105321]=note: print w/replies, xml ) Need Help??


in reply to programatically setting the LD_LIBRARY_PATH

You can use the shebang to set the environment variables you want:
#! /bin/sh -- #! -*- perl -*- eval 'exec env LD_LIBRARY_PATH="/path/to/lib:$LD_LIBRARY_PATH" \ XML_SIMPLE_PREFERRED_PARSER=XML::Parser \ PATH="/path1:/path2:/path3:$PATH" \ perl -x $0 ${1+"$@"}' if (0);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found