Hi,

I had installed perl 5.18.1 and two other modules DBI and DBD::Oralce.
And using the simple script below to test both modules, DBI worked but
DBD::Oracle gives the following errors.  Both modules compile and
installed without errors.

 

 

----- Testing module DBI worked:

$ vi perl_test.script

"perl_test.script" 4 lines, 55 characters

#!/usr/bin/perl

 

use DBI

print "hello world\n";

~

~

~

~

~

~

~

~

~

"perl_test.script" 4 lines, 48 characters

$

$ perl perl_test.script

hello world

$

 

 

 

 

----- Testing module DBD::Oracle, it failed:

$ vi perl_test.script

"perl_test.script" 4 lines, 48 characters

#!/usr/bin/perl

 

use DBD::Oracle

print "hello world\n";

 

 

 

~

~

~

"perl_test.script" 4 lines, 56 characters

$

 

 

$ perl perl_test.script

Can't load
'/usr/local/lib/perl5/site_perl/5.18.1/sun4-solaris/auto/DBD/Oracle/Orac
le.so' for module DBD::Oracle: ld.so.1: perl: fatal: 

/opt/oracle/10.2.0.3/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64
at /usr/local/lib/perl5/5.18.1/sun4-solaris/DynaLoader.pm line 190.

at perl_test.script line 4.

Compilation failed in require at perl_test.script line 4.

BEGIN failed--compilation aborted at perl_test.script line 4.

 

 

 

Can you please assist?

 

 

 

 

Reply via email to