Fri, 16 Dec 2005
Building DBD::Oracle
I spent a lot of time trying to install DBD::Oracle on a 64-bit AMD Sempron computer. Oracle has an "instant client" package downloadable from their web site, but it seems DBD::Oracle is not quite ready to be used with DBD::Oracle. I got all sorts of compile errors, mainly from Makefile.PL. The documentation I have found was sparse, but at the end I was able to build it using the following steps:
- Do everything mentioned in this thread from dbi-users list.
- Set up the link libraries as $linkvia = "-L$OH/lib -locci -lclntsh"; in Makefile.PL just above the line which reads "unless ($linkvia){"
- Add "-I$OH/include" to the end of $OCIINCLUDE variables (two occurences in Makefile.PL - around the lines 262 and 564.
- Configure using "perl Makefile.PL -m $ORACLE_HOME/demo/demo.mk".
- Add $ORACLE_HOME/lib to ld.so.conf.d or to $LD_LIBRARY_PATH.
- Build using "make".
I hope I did not forget anything. The strange thing is that altough the problems with building DBD::Oracle against the Instant client are known, there has been no release of DBD::Oracle for a year or so. Is DBD::Oracle an orphaned project?