On 6/20/07, Ravi Malghan <[EMAIL PROTECTED]> wrote:
Hi: I have a script which runs fine when I run it from the shell prompt. My LD_LIBRARY_PATH in the shell is as shown below
Somebody told me that if you have to set LD_LIBRARY_PATH and you're not testing libraries, that means that your ld needs to be configured so that you won't have to set LD_LIBRARY_PATH. Tell your sysadmin to fix this.
I have the following lines in my script at the beginning and the file libicudatabmc.so.32 is in /usr/arsapi/lib. $ENV{'LD_LIBRARY_PATH'} = '/export/home/netcool/oracle/instantclient_10_2:/usr/arsapi/lib:/usr/local/lib';
It should work if you wrap the right path setting in a BEGIN block before the first module is 'use'd, maybe something like this: BEGIN { $ENV{'LD_LIBRARY_PATH'} = join ':', '/some/very/long/path/to/my/lib' , '/another/of/the/same' , '/last/one/with/optional/trailing/comma' , ; # end of list, end of statement } Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/