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.