Nothing wrong with the build. You've still got old perl libraries sitting
around including an old DBI.
I have said a couple of times already to include the output of perl -V in
your posts. That's perl with a big "-V". This includes information about
your build of perl that will probably confirm there is more than one library
version in the INC path.
--Neil
>-----Original Message-----
>From: anshuman das [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 09, 2001 4:05 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: Further progress::Can't locate objrect method "connect" via
>package "DBI"
>
>
>As you told I am sending the log files of installation process of DBI.
>
>This is just to inform that after installing DBI I was
>installing DBD. An
>error
>occured:
>
>" DBI does not define #DBI::VERSION-- version check failed at
>make file.pl
>line 8"
>
>no 8 line was- use DBI 1.00 (the error was same)
>I made a change- use DBI 1.14 (same error)
>I made another change use DBI -> successful installation
>
>Can it create any problem?
>I hope you can remember my problem, if not consult my previous
>letter below
>this one.
>
>log-conf
>-----------
>^G*** 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
> http://www.perl.com/CPAN/modules/by-module
> http://www.perl.org/CPAN/modules/by-module
> ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module
>
>Checking if your kit is complete...
>Looks good
>
> 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
>
>
>log-make
>--------------
>
>mkdir blib
>mkdir blib/lib
>mkdir blib/arch
>mkdir blib/arch/auto
>mkdir blib/arch/auto/DBI
>mkdir blib/lib/auto
>mkdir blib/lib/auto/DBI
>mkdir blib/man1
>mkdir blib/man3
>cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
>cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
>cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
>cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
>cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
>cp dbipport.h blib/arch/auto/DBI/dbipport.h
>cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
>cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
>cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
>cp lib/DBD/ADO.pm blib/lib/DBD/ADO.pm
>cp DBI.pm blib/lib/DBI.pm
>cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
>cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
>cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
>cp Driver.xst blib/arch/auto/DBI/Driver.xst
>cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
>cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
>cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
>cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
>cp lib/DBD/Multiplex.pm blib/lib/DBD/Multiplex.pm
>/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" <
>blib/arch/auto/DBI/Driver.xst >
>Perl.xsi
>/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0
>/usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap
>/usr/lib/perl5/5.6.0/ExtUtils/typemap Perl.xs > Perl.xsc && mv
>Perl.xsc
>Perl.c
>gcc -c -fno-strict-aliasing -O2 -march=i386 -mcpu=i686
>-DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -fPIC
>-I/usr/lib/perl5/5.6.0/i386-linux/CORE -Wall -Wno-comment
>-DDBI_NO_THREADS
>Perl.c
>Perl.c: In function `XS_DBD__Perl__dr_discon_all_':
>Perl.c:32: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db__login':
>Perl.c:49: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_commit':
>Perl.c:83: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_rollback':
>Perl.c:100: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_disconnect':
>Perl.c:117: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_STORE':
>Perl.c:150: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_FETCH':
>Perl.c:172: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__db_DESTROY':
>Perl.c:191: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st__prepare':
>Perl.c:242: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_bind_param':
>Perl.c:287: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':
>Perl.c:329: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_execute':
>Perl.c:377: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_fetchrow_arrayref':
>Perl.c:424: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_fetchrow_array':
>Perl.c:443: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_finish':
>Perl.c:471: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_blob_read':
>Perl.c:501: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_STORE':
>Perl.c:539: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_FETCH_attrib':
>Perl.c:561: warning: unused variable `Perl___notused'
>Perl.c: In function `XS_DBD__Perl__st_DESTROY':
>Perl.c:583: warning: unused variable `Perl___notused'
>Perl.c: In function `boot_DBD__Perl':
>Perl.c:632: warning: unused variable `Perl___notused'
>/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0
>/usr/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap
>/usr/lib/perl5/5.6.0/ExtUtils/typemap DBI.xs > DBI.xsc && mv
>DBI.xsc DBI.c
>gcc -c -fno-strict-aliasing -O2 -march=i386 -mcpu=i686
>-DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -fPIC
>-I/usr/lib/perl5/5.6.0/i386-linux/CORE -Wall -Wno-comment
>-DDBI_NO_THREADS
>DBI.c
>DBI.xs: In function `dbih_clearcom':
>DBI.xs:840: warning: unused variable `Perl___notused'
>DBI.xs: In function `dbih_get_fbav':
>DBI.xs:977: warning: unused variable `Perl___notused'
>DBI.xs: In function `dbih_set_attr_k':
>DBI.xs:1069: warning: unused variable `Perl___notused'
>DBI.xs: In function `dbih_event':
>DBI.xs:1377: warning: unused variable `Perl___notused'
>DBI.xs: In function `log_where':
>DBI.xs:1481: warning: unused variable `Perl___notused'
>DBI.xs: In function `XS_DBI_dispatch':
>DBI.xs:1905: warning: unused variable `Perl___notused'
>DBI.xs:1528: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_constant':
>DBI.c:1961: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__setup_handle':
>DBI.c:1978: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__get_imp_data':
>DBI.c:1996: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__handles':
>DBI.c:2011: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_set_err':
>DBI.c:2033: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_neat':
>DBI.c:2081: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_hash':
>DBI.c:2102: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_looks_like_number':
>DBI.c:2126: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__install_method':
>DBI.c:2149: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_trace':
>DBI.c:2223: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI_dump_handle':
>DBI.c:2276: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__svdump':
>DBI.c:2300: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBI__var_FETCH':
>DBI.c:2320: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st__get_fbav':
>DBI.c:2408: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st__set_fbav':
>DBI.c:2424: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_bind_col':
>DBI.c:2453: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_bind_columns':
>DBI.c:2477: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_fetchrow_array':
>DBI.c:2517: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_fetch':
>DBI.c:2575: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_rows':
>DBI.c:2612: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____st_finish':
>DBI.c:2628: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_DESTROY':
>DBI.c:2644: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_STORE':
>DBI.c:2657: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_FETCH':
>DBI.c:2675: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_event':
>DBI.c:2690: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_private_data':
>DBI.c:2722: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_err':
>DBI.c:2737: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_state':
>DBI.c:2753: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_errstr':
>DBI.c:2770: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_trace':
>DBI.c:2790: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_trace_msg':
>DBI.c:2841: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD_____common_rows':
>DBI.c:2879: warning: unused variable `Perl___notused'
>DBI.c: In function `XS_DBD___mem__common_DESTROY':
>DBI.c:2895: warning: unused variable `Perl___notused'
>DBI.c: In function `boot_DBI':
>DBI.c:2915: warning: unused variable `Perl___notused'
>Running Mkbootstrap for DBI ()
>chmod 644 DBI.bs
>LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -shared
>-L/usr/local/lib
>DBI.o
>chmod 755 blib/arch/auto/DBI/DBI.so
>cp DBI.bs blib/arch/auto/DBI/DBI.bs
>chmod 644 blib/arch/auto/DBI/DBI.bs
>/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux
>-I/usr/lib/perl5/5.6.0 dbiproxy.PL dbiproxy
>Extracted dbiproxy from dbiproxy.PL with variable substitutions.
>mkdir blib/script
>cp dbiproxy blib/script/dbiproxy
>/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0
>-MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbiproxy
>/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux
>-I/usr/lib/perl5/5.6.0 dbish.PL dbish
>Extracted dbish from dbish.PL with variable substitutions.
>cp dbish blib/script/dbish
>/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0
>-MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbish
>Manifying blib/man3/DBI::ProxyServer.3pm
>Manifying blib/man3/DBD::Proxy.3pm
>Manifying blib/man3/DBI::Format.3pm
>Manifying blib/man1/dbish.1
>Manifying blib/man3/DBI::Shell.3pm
>Manifying blib/man3/DBD::ADO.3pm
>Manifying blib/man3/DBI.3pm
>Manifying blib/man3/DBI::FAQ.3pm
>Manifying blib/man3/Bundle::DBI.3pm
>Manifying blib/man3/Win32::DBIODBC.3pm
>Manifying blib/man1/dbiproxy.1
>Manifying blib/man3/DBI::W32ODBC.3pm
>Manifying blib/man3/DBI::DBD.3pm
>Manifying blib/man3/DBD::Multiplex.3pm
>
>
>
>log-test
>-------------
>
>PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
>-I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -e 'use
>Test::Harness qw(&runtests $verbose); $verbose=0; runtests
>@ARGV;' t/*.t
>t/basics............ok
>t/dbidrv............ok
>t/examp.............ok
>t/meta..............ok
>t/proxy.............skipped test on this platform
>t/shell.............ok
>t/subclass..........ok
>All tests successful, 1 test skipped.
>Files=7, Tests=179, 8 wallclock secs ( 5.73 cusr + 1.13 csys
>= 6.86 CPU)
>PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
>-I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 test.pl
>test.pl
>DBI test application $Revision: 10.4 $
>Using /usr/local/src/perl/DBI-1.14/blib
>Switch: DBI 1.14 by Tim Bunce, 1.14
>Available Drivers: ADO, ExampleP, Multiplex, Pg, Proxy
>dbi:ExampleP:: testing 5 sets of 20 connections:
>Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>Disconnecting...
>Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>Disconnecting...
>Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>Disconnecting...
>Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>Disconnecting...
>Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>Disconnecting...
>Made 100 connections in 0 wallclock secs ( 0.24 usr + 0.00
>sys = 0.24
>CPU)
>
>Testing handle creation speed...
>5000 NullP statement handles cycled in 4.0 cpu+sys seconds
>(1234 per sec)
>test.pl done
>
>-------------------bye Anshuman-----------------
>
>
>>From: Neil Lunn <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: RE: Can't locate objrect method "connect" via package "DBI"
>>Date: Fri, 6 Jul 2001 20:34:17 +1000
>>
>>The Script is fine so ther is something wrong with your
>installation. The
>>output of perl -V and the output of your DBI build would be helpful.
>>
>>If you don't know how to do this:
>>
>>tar zxvf DBI-x.xx.tar.gz
>>cd DBI-x.xx
>>perl Makefile.PL 2>&1 | tee log-conf
>>make 2>&1 | tee log-make
>>make test 2>&1 | tee log-test
>>
>>Paste the text from log-conf, log-make and log-test into your message.
>>
>>At a stab I would guess your old perl still resides on your system in
>>another directory in your path, say /usr/local.
>>
>>-Neil
>>
>>
>> >-----Original Message-----
>> >From: anshuman das [mailto:[EMAIL PROTECTED]]
>> >Sent: Friday, July 06, 2001 7:53 PM
>> >To: [EMAIL PROTECTED]
>> >Cc: [EMAIL PROTECTED]
>> >Subject: RE: Can't locate objrect method "connect" via package "DBI"
>> >
>> >
>> >hi
>> >
>> >this is the smallest part of my code.
>> >
>> >**************************************************
>> >#!/usr/bin/perl -w
>> >#this is test.pl
>> >
>> >use strict;
>> >use DBI;
>> >
>> >my $dbname = 'dcm_server';
>> >my $datasource = 'dbi:Pg:dbname=dcm_server';
>> >my $username = 'anshu';
>> >my $auth = 'anshu';
>> >my $host = '192.168.0.2';
>> >
>> >print "Trying to connect to database\n";
>> >my $dbh =
>> >DBI->connect("dbi:Pg:dbname=$dbname;host=$host;","$username","$
>> >auth",{AutoCommit=>0});
>> >
>> >if ($dbh) { # If successfully connected
>> > print "Connected to database\n";}
>> >else {
>> > print "Error Connecting to database\n";}
>> >
>> >****************************************************
>> >
>> >the error is :
>> >Can't locate object method "connect" via package "DBI" at
>> >test.pl line 14.
>> >
>> >I have recently upgraded my system RHLinux 6.2 -> RHLINUX 7
>> >this upgradation made following changes
>> >PostgreSQL 6.5 -> 7
>> >Perl 5 -> perl 5.6.0
>> >I installed DBI(1.14) and DBD manually.
>> >
>> >Before upgradation, my code was performing very well.
>> >
>> >Can you help me out?
>> >
>> >Regards
>> >
>> >Anshuman
>> >[EMAIL PROTECTED]
>> >
>> >
>> >>From: "Sterin, Ilya" <[EMAIL PROTECTED]>
>> >>To: anshuman das <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>> >>Subject: RE: Can't locate objrect method "connect" via
>package "DBI"
>> >>Date: Thu, 5 Jul 2001 22:21:07 -0400
>> >>
>> >>Well let see the code, versions of DBI/DBD.
>> >>
>> >>Ilya
>> >>
>> >> > -----Original Message-----
>> >> > From: anshuman das [mailto:[EMAIL PROTECTED]]
>> >> > Sent: Thursday, July 05, 2001 4:12 AM
>> >> > To: [EMAIL PROTECTED]
>> >> > Subject: Can't locate objrect method "connect" via package "DBI"
>> >> >
>> >> >
>> >> > Hi
>> >> >
>> >> > I have upgraded my machine as following
>> >> >
>> >> > RHLinux 6,.2 --> 7.0
>> >> > PostgreSql 65. --> 7.0
>> >> > Perl 5 -->Perl 5.6
>> >> >
>> >> > I have installed DBI & DBD again after the upgradation.
>> >> > My problem is my old perl codes (which were running
>> >perfectly before
>> >> > upgradation) uses connect are not running. It can't
>> >connect postgresql
>> >> > databse through DBI. The error is ---
>> >> > Can't locate objrect method "connect" via package "DBI"
>> >> >
>> >> > I posted this letter earlier, somebody asked me wheather I used
>> >> > use DBI. THe
>> >> > answer yes, I mentioned that MY CODES WERE RUNNING
>PERFECTLY BEFORE
>> >> > UPGRADATION.
>> >> >
>> >> > Please help.
>> >> >
>> >> > Anshuman Das
>> >> > [EMAIL PROTECTED]
>> >> >
>> >>______________________________________________________________
>> >___________
>> >> > Get Your Private, Free E-mail from MSN Hotmail at
>> >>http://www.hotmail.com.
>> >
>> >_______________________________________________________________
>> >__________
>> >Get Your Private, Free E-mail from MSN Hotmail at
>>http://www.hotmail.com.
>>
>>______________________________________________________________
>____________
>>Please Note :
>>Only the intended recipient is authorised to access or use
>this e-mail.
>>If
>>you are not the intended recipient,
>>please delete this e-mail and notify the sender immediately.
> The contents
>>of this e-mail are the writer's
>>opinion and are not necessarily endorsed by the Gunz Companies unless
>>expressly stated.
>>
>>We use virus scanning software but exclude all liability for
>viruses or
>>similar in any attachment.
>>
>>
>
>_______________________________________________________________
>__________
>Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
__________________________________________________________________________
Please Note :
Only the intended recipient is authorised to access or use this e-mail. If
you are not the intended recipient,
please delete this e-mail and notify the sender immediately. The contents
of this e-mail are the writer's
opinion and are not necessarily endorsed by the Gunz Companies unless
expressly stated.
We use virus scanning software but exclude all liability for viruses or
similar in any attachment.