Install DBD::Oracle on 64-bit Linux and Oracle 11g
Karun Dutt and I managed to get DBD::Oracle 1.21 to install on a 64-bit Linux OS against the Oracle 11 full client. Here’s what we did.
As root, we downloaded DBD::Oracle from CPAN.
# perl -MCPAN -eshell cpan> get DBD::Oracle ...
We replaced the distribution makefile with: http://svn.perl.org/modules/dbd-oracle/trunk/Makefile.PL (this is the latest Makefile.PL).
# cd /root/.cpan/build/DBD-Oracle-1.21 # export ORACLE_HOME=<actual value of Oracle Home> # export ORACLE_SID=<actual value of ORACLE_SID> # export ORACLE_USERID=<a working ORACLE_USERID> # export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME # perl Makefile.PL ... # make ... # make test ... # make install ...
It works!
