ELFCLASS64 error

From: Christian Merz (christian.merz_at_muenchen.de)
Date: 11/28/03


To: <dbi-users@perl.org>
Date: Fri, 28 Nov 2003 09:14:59 +0100

Hi all,

you get
ld: fatal: file /oracle/P14/920_64/lib//libclntsh.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to
blib/arch/auto/DBD/Oracle/Oracle.so
when you try to install DBD::Oracle (32bit Perl) on a 64bit Oracle.

This was discussed erlier. Our system group found a handy solution (after a
few days and lots of swearing):
1. change in $ORACLE_HOME/rdbms/lib/env_rdbms.mk:
LIBDIR=lib --> LIBDIR=lib32
2. after 'perl Makefile.PL' delete in Makefile the '-o build' option (only
required for Oracle 9.2.0; no changes required for 8.1.7; at least in our
installations)
3. after the installation remember to reset your env_rdbms.mk:
LIBDIR=lib32 --> LIBDIR=lib

Hope this may help,
---------------------------------------------------------
Landeshauptstadt München
Direktorium - AFID 3.3 - Oracle DBA
C.A. Merz



Relevant Pages

  • Re: DBD::Oracle Install Mystery
    ... getting trying to install DBD::Oracle: ... Looking at your compile line above I'm guessing you are using Oracle 8.1.6 and that OCI_FETCH_CURRENT was not available in 8.1.6)or at least not defined). ... get a recent instant client and instant client sdk and compile DBD::Oracle against that. ... Perl 5.10 recently installed with gcc, ...
    (perl.dbi.users)
  • RE: Trying to make DBI work for me
    ... I did "perl -V"; ... say "Oracle client", do you mean DBD-Oracle.ppd? ... Install 'DBD-Oracle' version 1.15 in ActivePerl 5.6.1.633. ... I don't know about the perl error, but as for the Oracle error, it ...
    (perl.dbi.users)
  • (Fwd) DBD module install problem
    ... I downloaded and built from source the lastest Perl from CPAN. ... I built it with gcc compiler which was built as a 64 bit binary. ... I was able to add the DBI module for Oracle, with no problem, but when I during the make of DBD I get this warning and an error message, and am unable to install it. ...
    (perl.dbi.users)
  • Re: Oracle make test failing on HP/UX
    ... Looks like you are pointing to the 64 bit binarys. ... You will have to use a 32 bit oracle client. ... When I go to install the Oracle stuff I get this during a "make test": ... I did *not* build a threaded Perl because that gives a harsh warning when installing Perl. ...
    (perl.dbi.users)
  • RE: Windows to Oracle
    ... You must install DBD::Oracle using either CPAN or ActiveState's PPM utility (if you're using AS Perl 5.6.0). ... If you are truly trying to use ODBC, why are you specifying the Oracle driver? ...
    (perl.dbi.users)