Re: Problem on Solaris 8 64-bit.



On 3/30/06, Rhugga Harper <rhugga@xxxxxxxxx> 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 <jonathan.leffler@xxxxxxxxx> #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."


Relevant Pages

  • Re: Perl from Terminal in OSX
    ... The -e switch tells perl to evaluate the text given to it as the script, ... school Perl extension for libraries of code, ... would suggest that the extension is incorrect. ...
    (perl.beginners)
  • libwww-perl library
    ... to figure this out I ran a script with get from my own computer.  ... downloaded from the cd that comes with the book Perl for Dummies, ... Is the library something I would have had to download separately when I ... but I don't really understand enough about libraries and ...
    (perl.beginners)
  • Re: Problem on Solaris 8 64-bit.
    ... When I run a script that uses DBD::Oracle, it complains about wrong ELF ... Is your Perl a 32-bit or a 64-bit version? ... Oracle libraries, ...
    (perl.dbi.users)
  • Re: Upgraded Perl; and lo, errors cause exim to fail
    ... >>documentation so that I can find the correct syntax for the command? ... Also, with this script and with most well-written perl scripts, ... modules, libraries, etc., you can do ...
    (freebsd-questions)
  • python-2.3.3 build failing
    ... XFree86-libraries-4.3.0_6 XFree86-4 libraries and headers ... infobot-0.44.5 Bot written in Perl with a rabid AI ... libident-0.22 A small library to interface the ident protocol server (rfc ... p5-Authen-SASL-2.04 Perl5 module for SASL authentication ...
    (freebsd-questions)