Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2012 13:43
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install document of DBD::Oracle on Ubuntu 12.04

DBD::Oracle on Ubuntu 12.04

参考:How To: Setup DBD::Oracle in Ubuntu « ZenHat

Install cpanminus

# apt-get install cpanminus
cat <<EOF >> ~/.bashrc
export PERL_CPANM_OPT="-l $HOME/.perl"

Install require package

for Oracle instant-client

# apt-get install libaio-dev

for rpm2deb

# apt-get install alien

for build

# apt-get install build-essential

Download oracle-instant-client-{basic,devel,sqlplus}


2012/8/15, version

make deb file

# oracle-instantclient11.2-{basic,sqlplus,devel}-
oracle-instantclient11.2-basic_11. generated
oracle-instantclient11.2-sqlplus_11. generated
oracle-instantclient11.2-devel_11. generated

Install oracle instant-client

# dpkg -i oracle-instantclient11.2-{basic,sqlplus,devel}_11.
cat <<EOF >> ~/.bashrc
export ORACLE_HOME=/usr/lib/oracle/11.2/client

Install Perl Module

$ cpanm RPC::EPC::Service DBI DBD::Oracle
Copy link

guaigua commented Aug 27, 2014

need to add "alien" in :

make deb file

alien oracle-instantclient11.2-{basic,sqlplus,devel}-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment