Re: issue with LD_LIBRARY_PATH
- From: "gechu" <mgazal@xxxxxxxxx>
- Date: 21 May 2005 11:10:15 -0700
Also forgot to mention the line 17 is use DBD::Oracle qw(:ora_types);
and when i ran the script it is from a different shell where the
LD_LIBRARY_PATH is not already set in the shell.
Thxs,
gechu.
gechu wrote:
> OS: Solaris 8
> Oracle version 8.1.7
>
> Perl, version 5.8.2.
> DBI 1.47
> DBD-Oracle-1.16
>
> When i sets the LD_LIBRARY_PATH from the shell and run the below
script
> it works fine. But when i tries to set the LD_LIBRARY_PATH from a
BEGIN
> block in the script it throws this error
>
> # .....perl ...distributionNameList.ipl
> Can't load '/..../site/lib/auto/DBD/Oracle/Oracle.so' for module
> DBD::Oracle: ld.so.1: /.../perl: fatal: libmm.so.11: open failed: No
> such file or directory at ...../perl/lib/DynaLoader.pm line 229.
> at /..../distributionNameList.ipl line 17
> Compilation failed in require at /...../distributionNameList.ipl line
> 17.
> BEGIN failed--compilation aborted at /..../distributionNameList.ipl
> line 17.
>
> This is the section in the script which sets the LD_LIBRARY_PATH
>
> #!/.../path_TO_PERL/perl
> use DBI;
> use strict;
> ##use DBD::Oracle qw(:ora_types);
> BEGIN
> {
> $ENV{'ORACLE_SID'}='...';
> $ENV{'ORACLE_USERID'}='...';
> $ENV{'PATH'}='/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/ccs/bin';
>
$ENV{"LD_LIBRARY_PATH"}="/u01/app/oracle/product/8.1.7/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/lib";
> $ENV{"ORACLE_HOME"}="/u01/app/oracle/product/8.1.7";
> $ENV{"ORACLE_LIB"}="/u01/app/oracle/product/8.1.7/lib";
> };
>
> use DBD::Oracle qw(:ora_types);
> my $XML_HEADER;
> my $XML_FOOTER;
>
> ...................................
>
>
> The file libmm.so.11 is present in the /usr/local/lib directory. If i
> set the LD_LIBRARY_PATH from the shell the script works fine but if i
> try to set the LD_LIBRARY_PATH in the BEGIN block it throws the about
> mentioned error. What could be the possible reasons for this?
>
> Please help
>
> Gechu.
.
- References:
- issue with LD_LIBRARY_PATH
- From: gechu
- issue with LD_LIBRARY_PATH
- Prev by Date: issue with LD_LIBRARY_PATH
- Next by Date: Version 1.42 of DBD::Pg released
- Previous by thread: issue with LD_LIBRARY_PATH
- Next by thread: Version 1.42 of DBD::Pg released
- Index(es):
Relevant Pages
|
|