With instant client you can run into problems if you set ORACLE_HOME so don't. Just set LD_LIBRARY_PATH to the path to where you installed instant client. e.g., I installed instant client in /home/martin/instantclient_11_1 (which is a dir created by unzipping sdk, sqlplus and basic zip files). The I set LD_LIBRARY_PATH to /home/martin/instantclient_11_1 and export it:

export LD_LIBRARY_PATH=/home/martin/instantclient_11_1:$LD_LIBRARY_PAT +H

NOTE you really should install the sqlplus package too because a) you can check you can access oracle first before playing with perl and b) DBD::Oracle uses sqlplus (if it exists) to work out your oracle version.

So /home/martin/instantclient_11_1 contains:

adrci libclntsh.so libociei.so ojdbc5.jar SQLPLUS_ +README BASIC_README libclntsh.so.11.1 libocijdbc11.so ojdbc6.jar genezi libnnz11.so libsqlplusic.so sdk glogin.sql libocci.so.11.1 libsqlplus.so sqlplus

and the first part of running Makefile.PL should show something like:

~/svn/dbd-oracle/trunk$ perl Makefile.PL Using DBI 1.611 (for perl 5.010000 on i486-linux-gnu-thread-multi) ins +talled in /usr/local/lib/perl/5.10.0/auto/DBI/ Configuring DBD::Oracle for perl 5.010000 on linux (i486-linux-gnu-thr +ead-multi) Remember to actually *READ* the README file! Especially if you have an +y problems. Trying to find an ORACLE_HOME Your LD_LIBRARY_PATH env var is set to '/home/martin/instantclient_11_ +1/' Found /home/martin/instantclient_11_1/ WARNING: Setting ORACLE_HOME env var to /home/martin/instantclient_11_ +1/ for you. WARNING: If these tests fail you may have to set ORACLE_HOME yourself! Installing on a linux, Ver#2.6 Using Oracle in /home/martin/instantclient_11_1/ DEFINE _SQLPLUS_RELEASE = "1101000600" (CHAR) Oracle version 11.1.0.6 (11.1) Looks like an Instant Client installation, okay Your LD_LIBRARY_PATH env var is set to '/home/martin/instantclient_11_ +1/' Oracle sysliblist: Found header files in /home/martin/instantclient_11_1//sdk/include. Checking for functioning wait.ph . . .

In reply to Re: DBD::Oracle installation fails on Linux with Oracle 10.2 instant client by mje
in thread DBD::Oracle installation fails on Linux with Oracle 10.2 instant client by mukkollu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.