title: Error When Trying to Install DBD::Oracle with CPANM
body: <p>Okay, so I was trying to install a combination of the CGI module, DBI module, and DBD::Oracle driver using CPANM on a 64bit Solaris 11 machine with an Oracle11g database.</p>
  
  <p>I installed that latest version of Perl using Perlbrew, updated CPANM, and then did the following...</p>
  
  <pre><code>cpanm -v -f -i CGI
  cpanm -v -f -i DBI
  </code></pre>
  
  <p>And both of those modules installed fine, the DBI did have a small test error (t/zvxnp_85gofer.t) when I tried to install it normally, but the force install seemed to work.</p>
  
  <p>So then I went to try to install the final part that I needed:</p>
  
  <pre><code>cpanm -v -f -i DBD::Oracle
  </code></pre>
  
  <p>And this was the error that came out towards the end of the installation...</p>
  
  <pre><code>Running Mkbootstrap for DBD::Oracle ()
  chmod 644 Oracle.bs
  rm -f blib/arch/auto/DBD/Oracle/Oracle.so
  LD_RUN_PATH="/opt/oracle/rdbms/lib" gcc  -G -L/usr/gnu/lib -fstack-protector Oracle.o  dbdimp.o  oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.so     \
     -L/opt/oracle/rdbms/lib/ -lclntsh -lkstat -lnsl -lsocket -lresolv -lgen -ldl -lsched -lrt -R/opt/oracle/rdbms/lib -laio -lposix4 -lkstat -lm -lpthread   \
  
  ld: fatal: file /opt/oracle/rdbms/lib//libclntsh.so: wrong ELF class: ELFCLASS64
  ld: fatal: file processing errors. No output written to blib/arch/auto/DBD/Oracle/Oracle.so
  collect2: ld returned 1 exit status
  *** Error code 1
  make: Fatal error: Command failed for target `blib/arch/auto/DBD/Oracle/Oracle.so'
  FAIL
  ! Installing DBD::Oracle failed. See /home/oracle/.cpanm/build.log for details.
  </code></pre>
  
  <p>I'm guessing just from the <code>wrong ELF class: ELFCLASS64</code> it has to do with some mismatch between the 64 bit binaries that exist and that this driver requires the 32 bit binaries to install? Some research has indicated that I need to find the lib32 directory to continue the installation, but I can't seem to find it.</p>
  
  <p>I did:</p>
  
  <p><code>echo $ORACLE_HOME</code> ---> /opt/oracle/rdbms
  <br>
  <code>ls $ORACLE_HOME</code></p>
  
  <p>That returned the following directories...</p>
  
  <pre><code>apex              emcli             mgw               rdbms
  assistants        has               network           relnotes
  bin               hs                nls               root.sh
  ccr               ide               oc4j              scheduler
  cdata             install           odbc              slax
  cfgtoollogs       install.platform  olap              sqldeveloper
  clone             instantclient     ons               sqlj
  config            inventory         OPatch            sqlplus
  crs               j2ee              opmn              srvm
  csmig             javavm            oracore           sysman
  css               jdbc              oraInst.loc       timingframework
  ctx               jdev              ord               ucp
  cv                jdk               oui               uix
  dbs               jlib              owb               utl
  dc_ocm            ldap              owm               wwg
  deinstall         lib64             perl              xdk
  demo              log               plsql
  diagnostics       md                precomp
  dv                mesg              racg
  </code></pre>
  
  <p>So I see a lib64, but no lib or lib32. Has anyone ever had this problem before, found a solution to it, or know how I could continue from here?</p>