Thanks Tom for this procedure.
The module now compiles properly, but using "make test" sends errors like
these:
#make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -
I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1 -e
'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/base..............Failed to load Oracle extension and/or shared
libraries:
install_driver(Oracle) failed: Can't load
'blib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1:
/usr/bin/perl: fatal: /usr/app/oracle/product/9.0.1/lib/libclntsh.so.9.0:
wrong ELF class: ELFCLASS64 at
/usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where
expected
at t/base.t line 19
The remaining tests will probably also fail with the same error.
<snip additional similar errors>
I'm not sure where to look to fix this. Makefile no longer contains
references to the default locations. I also updated mk.pm, to no avail.
Thanks in advance -
Dustin
>Thanks to Michael Peppler for suggesting the 64 bit vs. 32 bit library
problem. I was
>starting to suspect that myself.
>
>Lo and behold, in the Oracle installation directory, are two lib
directories:
>
> $ORACLE_HOME/lib and
> $ORACLE_HOME/lib32
>
>After successfully building the make file with perl Makefile.PL, I went in
and changed all >references to the lib directory to point to the lib32
directory. I also had to change the >$ORACLE_HOME/rdbms/lib directory to
$ORACLE_HOME/rdbms/lib32. After that, everything
>compiled and linked successfully.
>
>Hopefully this problem will be addressed in future versions of DBD-Oracle.
>
>-Tom
>
>I previously wrote:
>
>> We recently upgraded to Oracle 9.0.1, and my old installation of
>> DBI (1.14) and DBD-Oracle (1.06) stopped working with the error
>> "ERROR OCIEnvInit". I assumed I simply needed to rebuild DBD-Oracle
>> to use the new libraries from Oracle 9.0.1. So I downloaded the
>> latest versions of DBI (1.20) and DBD-Oracle (1.12). The build and
>> install of DBI went flawlessly. The build of DBD-Oracle ended with
>> the following link errors:
>>
>> ld: fatal: file > /opt/oracle0/oracle/product/9.0.1/lib//libclntsh.so:
>> wrong ELF class: ELFCLASS64
>> ld: fatal: File processing errors. No output written to
>> blib/arch/auto/DBD/Oracle/Oracle.so
>> make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1