shyju has asked for the wisdom of the Perl Monks concerning the following question:

hai,
I am now a perl beginner & working on Win32 system using cygwin 1.5.18-1 . with Perl version 5.8.7 .

I tested a perl script which uses DBI.( The program meant to connect to an oracle server). But an error is thrown like this :

Can't locate loadable object for module DBI in @INC (@INC contains: . /usr/lib/p erl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/ perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_

what i need to do to avoid. I hadn't seen anything about configuring DBI drivers in Cygwin, in any of the Docs.

Expecting ur kind reply,

Thanksfully,
Shyju Thomas

Replies are listed 'Best First'.
Re: problem with dbi driver
by Zaxo (Archbishop) on Dec 21, 2005 at 05:40 UTC

    The error message means a necessary dll is absent. That's an installation problem.

    Most module packages for win32 contain the dlls since compilers and build tools are so scarce on winders. You could try reinstalling DBI and the Oracle driver from a good repository for your perl vendor's installation. Make sure versions, options, and C compilers match.

    After Compline,
    Zaxo

Re: problem with dbi driver
by dokkeldepper (Friar) on Dec 21, 2005 at 10:15 UTC
    Possible workaround if the installation of the Oracle-driver fails: use the ODBC driver and connect via ODBC-connection.