From: | will trillich <will(at)serensoft(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | vze23skh(at)verizon(dot)net |
Subject: | Re: Re: Cant get Perl Module loaded |
Date: | 2001-06-02 12:07:05 |
Message-ID: | 20010602070705.D28201@serensoft.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, May 28, 2001 at 08:55:44PM -0400, Neil Conway wrote:
> On Thu, May 24, 2001 at 01:33:46AM +0000, John wrote:
> > Yes I posted a bunch of stuff way to hastily and was not clear. I ran
> > perl -e 'use DBD::Pg' and got this:
> >
> > perl -e 'use DBD::Pg'
> > Can't locate DBD/Pg.pm in @INC (@INC contains:
> > /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
> > /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .)
> > at -e line 1.
> > BEGIN failed--compilation aborted at -e line 1.
> >
> > I did a find as follows:
> >
> > joro(at)natascha:/usr/lib/perl5 > find . -name "Pg.pm" -print
> > ./site_perl/5.005/i586-linux/Pg.pm
>
> DBD::Pg and Pg.pm are completely different. The former is the Postgres
> driver for DBI, the later is a Perl interface to libpq. The file you
> have installed is the later, but your code is trying to use the
> former.
>
> To install DBD::Pg, download it from CPAN. Alternatively, use Pg.pm
> instead -- see `perldoc Pg` for more info (although I would recommend
> DBI, it's nicer IMHO).
for that, try
perl -MCPAN -e shell
and then
> install DBD::Pg
which /should/ make everything all sparkly. if not, you'll have
to do some poking around until you hit on the right incantation.
:}
--
#95: We are waking up and linking to each other. We are watching. But
we are not waiting. -- www.cluetrain.com
will(at)serensoft(dot)com
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!
From | Date | Subject | |
---|---|---|---|
Next Message | will trillich | 2001-06-02 12:11:29 | Re: Re: Incrementing a date type. |
Previous Message | will trillich | 2001-06-02 09:26:28 | Re: having problems with a simple query |