perl DBI/DBD Module -in cygwin


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting perl DBI/DBD Module -in cygwin
# 1  
Old 10-19-2007
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
# 2  
Old 10-20-2007
Can you show the exact console output?
# 3  
Old 10-20-2007
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/...1mailrc.txt.gz

Going to read /home/user/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
http://ftp.nara.wide.ad.jp/pub/CPAN/...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:Smilieaemon modules. The CPAN Bundle:SmilieBI 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/per...ules/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.
# 4  
Old 10-20-2007
Quote:
Originally Posted by jambesh
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
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing DB2 command without using the DBI module

Hi Guys, I wonder if possible to execute a Db2 commands within a perl scripts without installing or invoking the DBI modules. I have a script that is written in kron shell and it looks like : DB=`db2 list db directory | egrep "Database alias|Directory entry type"|awk '{printf $0 ;... (0 Replies)
Discussion started by: arizah
0 Replies

2. Shell Programming and Scripting

perl: help with DBI

Hi there, I have a bit of code similar to below (which ive actually got from perldoc, but mine is similar enough) $sth = $dbh->prepare(q{ SELECT region, sales FROM sales_by_region }); $sth->execute; my ($region, $sales); # Bind Perl variables to columns: $rv =... (4 Replies)
Discussion started by: hcclnoodles
4 Replies

3. UNIX for Advanced & Expert Users

Perl's DBI Module on OS X - uninstallable?

i've been struggling with installing the Perl DBI & DBD modules all weekend, and I'm getting close, but no cigar as of yet. When I run the perl script db.pl I get the following mismatch error: Mon Apr 19 09:43:29 EDT 2010 /Library/Perl/DBD-mysql-4.011 -> peterv@MBP17.local<515>$: db.pl | tee... (0 Replies)
Discussion started by: peterv6
0 Replies

4. Shell Programming and Scripting

Installing Perl DBI and DBD

Hi, i have some queries on installing the Perl DBI and the DBD Oracle. I know that i have to install the DBI first. I have the source files in a folder in my home directory.The commands to install arecd /home/DBI Perl Makefile.PL make make installI would like to know, after executing these... (4 Replies)
Discussion started by: new2ss
4 Replies

5. Programming

perl dbi to oracle getting disconnect_all for oracle dbi help

hi i am trying to connect to an oracle database using dbi and i get this :: Driver has not implemented the disconnect_all method. at /opt/perl/lib/site_perl/5.8.0/sun4-solaris/DBI.pm line 575 END failed--call queue aborted. for all i know, the script was working earlier, but has... (1 Reply)
Discussion started by: poggendroff
1 Replies

6. UNIX and Linux Applications

help: error in installing perl module DBD::mysql

Hi, I am trying to install perl module DBD::mysql and don't know how to resolve the following: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.............ok 3/5install_driver(mysql) failed: Can't load... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies

7. Solaris

How to set restricted user by rksh? Cannot use Perl module DBD::Oracle

Hi, all, I need to add a user to our system in order to let him use Oracle and Perl. We want him to remain in his home directory and have no access to our data and other users' files. I created a separate group for this user, and set his shell to rksh when I created his account, by which he... (2 Replies)
Discussion started by: alanlh
2 Replies

8. Shell Programming and Scripting

PERL DBI module install

We ran into an issue trying to install DBI and DB2 modules for perl for AIX from the link http://www-306.ibm.com/software/data/db2/perl/ We tried to install the DBI module using bash# perl -MCPAN -e 'install DBI' command. However we ended up with the following error. Stop. ... (3 Replies)
Discussion started by: jerardfjay
3 Replies

9. UNIX for Advanced & Expert Users

perl-DBD-Oracle

I am trying to install perl-DBD-Oracle-1.16-1.2.rpm on Suse (SLE 9), like rpm -Uvh perl-DBD-Oracle-1.16-1.2.rpm but I keep getting the following error message error: Failed dependencies: libclntsh.so.10.1 is needed by perl-DBD-Oracle-1.16-1.2.el4 libnnz10.so is needed by... (1 Reply)
Discussion started by: hassan1
1 Replies

10. UNIX for Advanced & Expert Users

perl module DBD-Oracle

I am trying to install Oracle perl module(DBD-Oracle). MY oracle server runs on solaris 8 while the machine am tring to install DBD-Oracle runs Suse linux 9(SLE 9) Oracle client library including sqlplus are NFS mount on my suse linux machine from my solaris oracle server but when I run make on... (1 Reply)
Discussion started by: hassan1
1 Replies
Login or Register to Ask a Question