Skrevet av Emne: Perl: Installing DBD::Oracle  (Lest 3999 ganger)

ATC

  • Gjest
Perl: Installing DBD::Oracle
« på: 07. August 2009, 13:44 pm »
  • [applaud]0
  • [smite]0
  • Trying to install DBD::Oracle from CPAN fails because the Oracle client is not properly installed. How do I install the client?



    ATC

    • Gjest
    [Solved] Perl: Installing DBD::Oracle
    « Svar #1 på: 07. August 2009, 13:44 pm »
  • [applaud]0
  • [smite]0
  • 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