Ano-Tech Computers
Enter keyword:

Perl: Installing DBD::Oracle
Problem:
Trying to install DBD::Oracle from CPAN fails because the Oracle client is not properly installed. How do I install the client?
 
Solution:
1. Go to http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
2. Accept the license agreement
3. Download and install the following RPM files:
- Instant Client Package - Basic
- Instant Client Package - SQL*Plus
- Instant Client Package - SDK
4. Edit /etc/profile adding the following:
export ORACLE_HOME=/usr/lib/oracle/11.1/client/lib/
export LD_LIBRARY_PATH=/usr/lib/oracle/11.1/client/lib/
5. Log out and back in so the profile settings take effect
6. Run perl -MCPAN -e 'install DBD::Oracle' again

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles