Hello:  The script worked at one point, with use DBI;  then, I upgraded perl 
from 5.6.0 to 5.6.1 and got into trouble.  I have both running now.  What I 
want to do, is to figure out how to get use DBI to go find DBD/Pg.pm.  Any 
pointers appreciated.  The error message follows:

#! /usr/bin/perl5.6.1 -w
use strict;
use '/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Bundle/DBI.pm';
use '/usr/lib/perl5/site_perl/5.6.0/i586-linux/DBD/Pg.pm'; 

# Connect to the database
my $dbh = DBI->connect("dbi:Pg:dbname=tomdb");

# /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Bundle/DBI.pm
# /usr/lib/perl5/site_perl/5.6.0/i586-linux/DBD/Pg.pm

tompoe@aether:~/perlStuff/dbi > perl tablelayout.pl
install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC contains: 
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux 
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at 
(eval 1) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: ExampleP, Proxy.
 at tablelayout.pl line 8
tompoe@aether:~/perlStuff/dbi >

Tom Poe
Reno, NV
http://www.studioforrecording.org/
http://www.ibiblio.org/studioforrecording/
http://renotahoe.pm.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to