re:install problems

Nick Landess <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <C464DF0F.6A7D%[email protected]>
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" <fred-3BbYVzP+qW3iLJGoLe449gC/[email protected]> wrote:

> /volumes/wonder/downloads/DBD-Pg-2.7.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.