pdupre has asked for the wisdom of the Perl Monks concerning the following question:
I need to modify the variable $LD_LIBRARY_PATH for some of my perl applications
Following some recommendations of the list, I tried in my perl application:
BEGIN { $ENV{LD_LIBRARY_PATH} = "/usr/local/gsl-1/lib" ; # exec 'env', $^X, $0, @ARGV ; }
Actually, exec 'env', $^X, $0, @ARGV ; does not work
However, if I run
LD_LIBRARY_PATH=/usr/local/gsl-1/lib ./myperl.plIt woks fine
How can I modify the LD_LIBRARY_PATH inside the perl file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LD_LIBRARY_PATH setting
by Corion (Patriarch) on Aug 05, 2016 at 18:31 UTC | |
by pdupre (Acolyte) on Aug 05, 2016 at 18:40 UTC | |
by Corion (Patriarch) on Aug 05, 2016 at 19:00 UTC | |
by pdupre (Acolyte) on Aug 05, 2016 at 19:08 UTC | |
by Corion (Patriarch) on Aug 05, 2016 at 19:14 UTC | |
| |
|
Re: LD_LIBRARY_PATH setting
by Anonymous Monk on Aug 05, 2016 at 19:15 UTC | |
by Anonymous Monk on Aug 05, 2016 at 19:26 UTC | |
by Anonymous Monk on Aug 05, 2016 at 19:20 UTC | |
|
Re: LD_LIBRARY_PATH setting
by duyet (Friar) on Aug 06, 2016 at 12:11 UTC | |
by Corion (Patriarch) on Aug 06, 2016 at 12:37 UTC | |
by Anonymous Monk on Aug 06, 2016 at 14:32 UTC |