On 3/30/06, Rhugga Harper <[EMAIL PROTECTED]> wrote: > > I'm running Oracle 10.2.0.1 on Solaris 8 64-bit. I running DBI 1.50, > DBD::Oracle 1.16, and Perl 5.8.7. > > When I run a script that uses DBD::Oracle, it complains about wrong ELF > class: > > Can't load > > '/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBD/Oracle/Oracle.so' > for module DBD::Oracle: ld.so.1: snapshot_tracker: fatal: > /u01/app/oracle/product/10.2/lib/libclntsh.so.10.1: wrong ELF class: > ELFCLASS64 at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line > 230. > at ./snapshot_tracker line 10 > Compilation failed in require at ./snapshot_tracker line 10. > BEGIN failed--compilation aborted at ./snapshot_tracker line 10 > > Even if I set LD_LIBRARY_PATH=/u01/app/oracle/product/10.2/lib32 in my > shell > environment and also explicitly set this using $ENV inside my script it > still complains. If I copy the 32-bit client library into the > /u01/app/oracle/product/10.2/lib directory my perl scripts work but then > sqlplus is broken. (and subsequently all my shell scripts) > > Have I built DBD::Oracle incorrectly or how can I get DBI/DBD to use the > library under lib32? (I would like to get DBD::Oracle to use the 64-bit > library) > > Thanks for any help
Is your Perl a 32-bit or a 64-bit version? If you want to use the 64-bit Oracle libraries, you'll need a 64-bit Perl. If you'd included the output of 'perl -V', we could have told you what you've got - you didn't, so we can't. -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org "I don't suffer from insanity - I enjoy every minute of it."