// you’re reading...

Featured

Building perl-DBD-Oracle RPM

I was looking for perl-DBD-Oracle RPM package for Centos-5.5, but unable to find one. So I decided to build my own.

  • First, get Oracle instant client from Oracle site. I choose RPM packages, and it installed seamlessly.
  • You should create file /etc/ld.so.conf.d/oracle.conf, which contain path to oracle libs /usr/lib/oracle/11.2/client/lib. Run ldconfig afterwards.
  • Export environment variables:

export ORACLE_HOME=/usr/lib/oracle/11.2/client/lib/
export LD_LIBRARY_PATH=$ORACLE_HOME
export TNS_ADMIN=/usr/lib/oracle/11.2/client/admin/network

  • Grab this DBD-Oracle.spec. I created using cpan2rpm, but add a little tweak on generated file.
  • Download DBD-Oracle package from here and put the file as /usr/src/redhat/SOURCES/DBD-Oracle-1.27.tar.gz
  • Rebuild files with rpmbuild -bs /usr/src/redhat/SPECS/DBD-Oracle.spec
  • Done, enjoy your own  perl-DBD-Oracle

 


Ernas Moethar

Comments are closed.

Pulsa Murah All Operator