From: | "Manoj" <manoj(at)innomedia(dot)soft(dot)net> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Cc: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | initialisation failed |
Date: | 1999-08-03 09:14:02 |
Message-ID: | 003101bedd90$8756e2c0$b901a8c0@santu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi
I have insatlled DBI1.13 for PostgreSQL in my Redhat 5. I have written a program(in PERL5) to connect to a database in postgreSQL.,It is giving some problems when I am trying to execute it.
Can anybody help me solve this problem??..
The program I have written,
#! /usr/bin/perl
use DBI;
$dbh = DBI->connect("dbi:Pg:dbname=manoj","" , "",
{ RaiseError => 1, AutoCommit => 0 })||die("Can't conne
ct ");
$sth=$dbh->prepare("select * from manoj1");
$dbh->disconnect;
print $sth;
~
Error I got while executing
DBD::Pg initialisation failed: Can't locate object method "driver" via package "
DBD::Pg" at /usr/lib/perl5/site_perl/DBI.pm line 481.
Perhaps the capitalisation of DBD 'Pg' isn't right. at test.pl line 2
Regards
Manoj
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 1999-08-03 11:32:10 | Re: [HACKERS] RE: |
Previous Message | Manoj | 1999-08-03 09:06:54 | initialisation failed |