Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: REDIRECT_LD_LIBRARY_PATH variable?

by bichonfrise74 (Vicar)
on Mar 03, 2009 at 23:29 UTC ( [id://747944]=note: print w/replies, xml ) Need Help??


in reply to REDIRECT_LD_LIBRARY_PATH variable?

Can you set it like this?
#!/usr/bin/perl $ENV{'LD_LIBRARY_PATH'} = '/<your_path>'; print $ENV{'LD_LIBRARY_PATH'};

Replies are listed 'Best First'.
Re^2: REDIRECT_LD_LIBRARY_PATH variable?
by tilly (Archbishop) on Mar 04, 2009 at 01:43 UTC
    No, because the LD_LIBRARY_PATH is all about how C is going to link dynamic libraries, and C will use the environment variable that was there when your program was created. So setting it after you're in your program won't cause it to do what you need it to do. See Re: REDIRECT_LD_LIBRARY_PATH variable? for the kind of workarounds that are needed for a standalone program.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found