Class-DBI-Pg - Could not connect to pg using perl

Posted on Mon Oct 31 07:03:38 2005 by mcinfo
Could not connect to pg using perl
The following is the code I am trying to exeute just to test if i could connect to pg: ================= use DBI; use strict; use warnings; my $dbh = DBI->connect( 'DBI:Pg:dbname=DBNAME','USERNAME','PASSWORD'); $dbh->disconnect; ================= I tried re-installing perl/postgres/and DBD-Pg.ppd several times but still encounter the following +error description: ================= DBI connect('dbname=Book','typhoonsu',...) failed: could not create socket: Address family not supp +orted (0x0000273F/10047) at testdbconn.pl line 3 ================= what is wrong?
Direct Responses: 3277 | Write a response