perl DBI/DBD Module -in cygwin

Hi all,
I am trying to install the DBI module in perl
using perl -MCPAN -e shell
install 'DBI'

--It is installing into the nuild directory properly but when it try to
make it is saying
NOT OK

-I tried to copy the module manually to the /lib/perl5/vendor_perl directory
but when i try to test the module using
perl -e 'use DBI;'
it says some error
BEGIN
--
--
some line number error

Can any body please help me in instaling the DBI -for Oracle in cygwin
i am tryign it desperately

Thanks
Jambeswar

Can you show the exact console output?

Here is the Sample Out put when i try to install DBI.
please --assist

bash-3.2$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled

cpan> install 'DBI'
CPAN: Storable loaded ok
Going to read /home/user/.cpan/Metadata
Database was generated on Thu, 18 Oct 2007 23:36:36 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/authors/01mailrc.txt.gz

Going to read /home/user/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/modules/02packages.details.txt.gz
Going to write /home/user/.cpan/Metadata
Running install for module DBI
Running make for T/TI/TIMB/DBI-1.59.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /home/user/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.59.tar.gz ok
Scanning cache /home/user/.cpan/build for sizes
DBI-1.59/
DBI-1.59/Changes
DBI-1.59/dbd_xsh.h
DBI-1.59/DBI.pm
DBI-1.59/DBI.xs
DBI-1.59/dbi_sql.h
DBI-1.59/dbilogstrip.PL
DBI-1.59/dbipport.h
DBI-1.59/dbiprof.PL
DBI-1.59/dbiproxy.PL
DBI-1.59/dbivport.h
DBI-1.59/DBIXS.h
DBI-1.59/dbixs_rev.h
DBI-1.59/dbixs_rev.pl
DBI-1.59/Driver.xst
DBI-1.59/Driver_xst.h
DBI-1.59/ex/
DBI-1.59/ex/perl_dbi_nulls_test.pl
DBI-1.59/ex/profile.pl
DBI-1.59/lib/
DBI-1.59/lib/Bundle/
DBI-1.59/lib/Bundle/DBI.pm
DBI-1.59/lib/DBD/
DBI-1.59/lib/DBD/DBM.pm
DBI-1.59/lib/DBD/ExampleP.pm
DBI-1.59/lib/DBD/File.pm
DBI-1.59/lib/DBD/Gofer/
DBI-1.59/lib/DBD/Gofer/Policy/
DBI-1.59/lib/DBD/Gofer/Policy/Base.pm
DBI-1.59/lib/DBD/Gofer/Policy/classic.pm
DBI-1.59/lib/DBD/Gofer/Policy/pedantic.pm
DBI-1.59/lib/DBD/Gofer/Policy/rush.pm
DBI-1.59/lib/DBD/Gofer/Transport/
DBI-1.59/lib/DBD/Gofer/Transport/Base.pm
DBI-1.59/lib/DBD/Gofer/Transport/null.pm
DBI-1.59/lib/DBD/Gofer/Transport/pipeone.pm
DBI-1.59/lib/DBD/Gofer/Transport/stream.pm
DBI-1.59/lib/DBD/Gofer.pm
DBI-1.59/lib/DBD/NullP.pm
DBI-1.59/lib/DBD/Proxy.pm
DBI-1.59/lib/DBD/Sponge.pm
DBI-1.59/lib/DBI/
DBI-1.59/lib/DBI/Const/
DBI-1.59/lib/DBI/Const/GetInfo/
DBI-1.59/lib/DBI/Const/GetInfo/ANSI.pm
DBI-1.59/lib/DBI/Const/GetInfo/ODBC.pm
DBI-1.59/lib/DBI/Const/GetInfoReturn.pm
DBI-1.59/lib/DBI/Const/GetInfoType.pm
DBI-1.59/lib/DBI/DBD/
DBI-1.59/lib/DBI/DBD/Metadata.pm
DBI-1.59/lib/DBI/DBD.pm
DBI-1.59/lib/DBI/FAQ.pm
DBI-1.59/lib/DBI/Gofer/
DBI-1.59/lib/DBI/Gofer/Execute.pm
DBI-1.59/lib/DBI/Gofer/Request.pm
DBI-1.59/lib/DBI/Gofer/Response.pm
DBI-1.59/lib/DBI/Gofer/Transport/
DBI-1.59/lib/DBI/Gofer/Transport/Base.pm
DBI-1.59/lib/DBI/Gofer/Transport/pipeone.pm
DBI-1.59/lib/DBI/Gofer/Transport/stream.pm
DBI-1.59/lib/DBI/Profile.pm
DBI-1.59/lib/DBI/ProfileData.pm
DBI-1.59/lib/DBI/ProfileDumper/
DBI-1.59/lib/DBI/ProfileDumper/Apache.pm
DBI-1.59/lib/DBI/ProfileDumper.pm
DBI-1.59/lib/DBI/ProfileSubs.pm
DBI-1.59/lib/DBI/ProxyServer.pm
DBI-1.59/lib/DBI/PurePerl.pm
DBI-1.59/lib/DBI/SQL/
DBI-1.59/lib/DBI/SQL/Nano.pm
DBI-1.59/lib/DBI/Util/
DBI-1.59/lib/DBI/Util/_accessor.pm
DBI-1.59/lib/DBI/W32ODBC.pm
DBI-1.59/lib/Win32/
DBI-1.59/lib/Win32/DBIODBC.pm
DBI-1.59/Makefile.PL
DBI-1.59/MANIFEST
DBI-1.59/META.yml
DBI-1.59/Perl.xs
DBI-1.59/README
DBI-1.59/Roadmap.pod
DBI-1.59/t/
DBI-1.59/t/01basics.t
DBI-1.59/t/02dbidrv.t
DBI-1.59/t/03handle.t
DBI-1.59/t/04mods.t
DBI-1.59/t/05thrclone.t
DBI-1.59/t/06attrs.t
DBI-1.59/t/07kids.t
DBI-1.59/t/08keeperr.t
DBI-1.59/t/09trace.t
DBI-1.59/t/10examp.t
DBI-1.59/t/11fetch.t
DBI-1.59/t/12quote.t
DBI-1.59/t/13taint.t
DBI-1.59/t/14utf8.t
DBI-1.59/t/15array.t
DBI-1.59/t/19fhtrace.t
DBI-1.59/t/20meta.t
DBI-1.59/t/30subclass.t
DBI-1.59/t/40profile.t
DBI-1.59/t/41prof_dump.t
DBI-1.59/t/42prof_data.t
DBI-1.59/t/43prof_env.t
DBI-1.59/t/50dbm.t
DBI-1.59/t/60preparse.t
DBI-1.59/t/65transact.t
DBI-1.59/t/70callbacks.t
DBI-1.59/t/72childhandles.t
DBI-1.59/t/80proxy.t
DBI-1.59/t/85gofer.t
DBI-1.59/t/86gofer_fail.t
DBI-1.59/t/pod.t
DBI-1.59/TASKS.pod
DBI-1.59/test.pl
DBI-1.59/TODO_2005.txt
DBI-1.59/typemap
Removing previously used /home/user/.cpan/build/DBI-1.59

CPAN.pm: Going to build T/TI/TIMB/DBI-1.59.tar.gz

*** You are using a perl configured with threading enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

*** Note:
The optional PlRPC-modules (RPC::PlServer etc) are not installed.
If you want to use the DBD::Proxy driver and DBI::ProxyServer
modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
You can install them any time after installing the DBI.
You do *not* need these modules for typical DBI usage.

Optional modules are available from any CPAN mirror, in particular
The CPAN Search Site - search.cpan.org
Index of /CPAN/modules/by-module
Index of /modules/by-module
ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module

Your perl was compiled with gcc (version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)), okay.
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t
t/zvp_02dbidrv.t
t/zvp_03handle.t
t/zvp_04mods.t
t/zvp_05thrclone.t (use threads)
t/zvp_06attrs.t
t/zvp_07kids.t
t/zvp_08keeperr.t
t/zvp_09trace.t
t/zvp_10examp.t
t/zvp_11fetch.t
t/zvp_12quote.t
t/zvp_13taint.t
t/zvp_14utf8.t
t/zvp_15array.t
t/zvp_19fhtrace.t
t/zvp_20meta.t
t/zvp_30subclass.t
t/zvp_40profile.t
t/zvp_41prof_dump.t
t/zvp_42prof_data.t
t/zvp_43prof_env.t
t/zvp_50dbm.t
t/zvp_60preparse.t
t/zvp_65transact.t
t/zvp_70callbacks.t
t/zvp_72childhandles.t
t/zvp_80proxy.t
t/zvp_85gofer.t
t/zvp_86gofer_fail.t
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
t/zvg_03handle.t
t/zvg_04mods.t
t/zvg_05thrclone.t (use threads)
t/zvg_06attrs.t
t/zvg_07kids.t
t/zvg_08keeperr.t
t/zvg_09trace.t
t/zvg_10examp.t
t/zvg_11fetch.t
t/zvg_12quote.t
t/zvg_13taint.t
t/zvg_14utf8.t
t/zvg_15array.t
t/zvg_19fhtrace.t
t/zvg_20meta.t
t/zvg_30subclass.t
t/zvg_40profile.t
t/zvg_41prof_dump.t
t/zvg_42prof_data.t
t/zvg_43prof_env.t
t/zvg_50dbm.t
t/zvg_60preparse.t
t/zvg_65transact.t
t/zvg_70callbacks.t
t/zvg_72childhandles.t
t/zvg_80proxy.t
t/zvg_85gofer.t
t/zvg_86gofer_fail.t
Creating test wrappers for PurePerl & Gofer:
t/zvxgp_01basics.t
t/zvxgp_02dbidrv.t
t/zvxgp_03handle.t
t/zvxgp_04mods.t
t/zvxgp_05thrclone.t (use threads)
t/zvxgp_06attrs.t
t/zvxgp_07kids.t
t/zvxgp_08keeperr.t
t/zvxgp_09trace.t
t/zvxgp_10examp.t
t/zvxgp_11fetch.t
t/zvxgp_12quote.t
t/zvxgp_13taint.t
t/zvxgp_14utf8.t
t/zvxgp_15array.t
t/zvxgp_19fhtrace.t
t/zvxgp_20meta.t
t/zvxgp_30subclass.t
t/zvxgp_40profile.t
t/zvxgp_41prof_dump.t
t/zvxgp_42prof_data.t
t/zvxgp_43prof_env.t
t/zvxgp_50dbm.t
t/zvxgp_60preparse.t
t/zvxgp_65transact.t
t/zvxgp_70callbacks.t
t/zvxgp_72childhandles.t
t/zvxgp_80proxy.t
t/zvxgp_85gofer.t
t/zvxgp_86gofer_fail.t
Checking if your kit is complete...
Looks good

I see you're using perl 5.008008 on cygwin-thread-multi-64int, okay.
Remember to actually \*read* the README file!
Use  'make' to build the software \(dmake or nmake on Windows\).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

*********************
when i try to check if the module is available-
using
perl -e 'use DBI;'

--
Here is the console out put i am getting
----
Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/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/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

I could not find any fatal error messages in what you quoted. I guess probably writing the Makefile already failed just by looking at above. You may try to go to the CPAN build directory (/home/user/.cpan/build/DBI-1.59) and see whether you see a Makefile there. If so, try cd to that dir and then run "make" there and see what happens.

Otherwise, also try not to use CPAN shell but to download the DBI package directory manually from CPAN and then do the normal steps of compiling the package

perl Makefile.pl
make

and see whether you can compile it that way.