On Thu, 10 Dec 2009 16:30:58 +0530, Kallol Chakraborty wrote:

>                I am having DBI.pm package in 
> /oracle/app/oracle/product/10.2.0/in-dwh/perl/lib/site_perl/5.8.3/i686-linux-thread-multi
>  , which is coming with Oracle 10G .
>In my perl code I am using
>
>use lib 
>/app/oracle/product/10.2.0/in-dwh/perl/lib/site_perl/5.8.3/i686-linux-thread-multi
> ";

I assume that's not copy/pasted, as it's missing a quote

>use DBI;

>but it is giving error
>
>Can't locate DBI.pm in @INC

Well, technically, the directory you ought to be including in @INC is
"/app/oracle/product/10.2.0/in-dwh/perl/lib/site_perl"; the rest of the
path is automatically included by lib.pm (it automatically adds several
directories under that root).

I'm guessing either DBI is trying to autoloading some other file which
it cannot find, due to incomplete data in @INC; or that that
installation is binary incompatible with your perl (if you're not using
Oracle's perl; if you were, that directory should have been included by
default).

Best just install DBI and DBD::Orcale for your own perl, IMHO.

-- 
        Bart.

Reply via email to