Fred ­ thanks so much for your quick response:

The installation seemed to go okay at that point, but then the driver does
not seem to work?
> 
> Nicholas-Landess-Computer:/volumes/mamacass/xpermint nick$ perl dbconnect.pl
> install_driver(Pg) failed: Can't locate version.pm in @INC (@INC contains:
> /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level
> /Library/Perl/5.8.6 /Library/Perl
> /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> /Network/Library/Perl/5.8.6 /Network/Library/Perl
> /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.8.6
> /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at
> /Library/Perl/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 20.
> BEGIN failed--compilation aborted at
> /Library/Perl/5.8.6/darwin-thread-multi-2level/DBD/Pg.pm line 20.
> Compilation failed in require at (eval 3) line 3.
> Perhaps a module that DBD::Pg requires hasn't been fully installed
>  at dbconnect.pl line 11
> Nicholas-Landess-Computer:/volumes/mamacass/xpermint nick$
> 
Again ­ please forgive any newbie errors, and thanks for your help.

Below is the script I was trying to run that produced that message ­ I am
just trying to verify that I can connect to  the dbms and run a simple query
before I get into anything strenuous.  (I am mostly a database guy.)



> #!/usr/bin/perl
> use strict;
> use warnings;
> use DBI;
> 
> my $user = "postgres";
> my $pass = "Marilyn";
> my $server = "dbi:Pg:dbname = idx";
> 
> 
> my $dbh = DBI->connect($server, $user, $pass);
> 
> 
> my $statement = "SELECT COUNT(*) FROM fileload";
> my @ary_ref = $dbh->selectrow_array($statement);
> 
> foreach(@ary_ref) {
> print $_ . "\n";
> }




On 5/29/08 8:53 PM, "Fred Moyer" <[EMAIL PROTECTED]> wrote:

> /volumes/wonder/downloads/DBD-Pg-2.7.2

Reply via email to