|Syntactic Confectionery Delight|
How to set LD_LIBRARY_PATHby sarf13 (Beadle)
|on Jan 09, 2012 at 06:07 UTC||Need Help??|
sarf13 has asked for the
wisdom of the Perl Monks concerning the following question:
Can someone advise how to set LD_LIBRARY_PATH from within the Perl scripts?
If I set LD_LIBRARY_PATH from the command line, all is okay
oracle ~$ perl -e 'use DBD::Oracle; print $DBD::Oracle::VERSION,"\n";' Can't load '/oracle/product/db/11.1/perl/lib/site_perl/5.8.3/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.11.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. oracle ~$ export LD_LIBRARY_PATH=/oracle/product/db/11.1/lib
How to set the LD_LIBRARY_PATH then?
the script is to run from a cron which is why am setting LD_LIBRARY_PATH in the script.
Any response will be very much appreciated. Thanks in advance. Thank u all monks...
i got resolve this issue...