[sf-perl] Setting LD_LIBRARY_PATH
extasia at extasia.org
Thu Jul 5 15:47:52 PDT 2007
How about writing a wrapper around your program. The wrapper sets
LD_LIBRARY_PATH (or for that matter, any environment variable you
like), and then calls your program with all arguments it got?
On 7/5/07, Loo, Peter # PHX <Peter.Loo at source.wolterskluwer.com> wrote:
> Unix admins here are not happy about updating the .profile of the production
> account to add two additional entries to LD_LIBRARY_PATH environment
> variable. So I am having to figure out an alternative solution in setting
> this environment dynamically during program run. I have tried setting it at
> the beginning of the program and I have tried putting it in the BEGIN block
> with no luck. I have searched the Internet and found a lot of discussion
> but did not find any solution.
> According to Tim Bunce's posting, LD_LIBRARY_PATH must be set before the
> process starts.
> Shall I just go Tim's advise and have the admins change the .profile or does
> someone have a solution to help with this problem?
Live in a world of your own, but always welcome visitors.
More information about the SanFrancisco-pm