Re: Postgres and Perl: Which DBI module?

From: Phil Dobbin <phildobbin(at)pobox(dot)com>
To: "Leland F(dot) Jackson, CPA" <smvfp(at)mail(dot)smvfp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres and Perl: Which DBI module?
Date: 2002-08-02 15:19:45
Message-ID: r01050300-1015-46E17A96A62B11D6B2790003930DCC6E@[10.0.0.2]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/8/02 at 10:00, smvfp(at)mail(dot)smvfp(dot)com (Leland F. Jackson, CPA) wrote:

> Hi Phil,

[snip]

> If you already have Pg.pm on your system, which I suspect that you do,
> then
> it is a matter of refering to it correctly in your perl script or you
> could
> copy Pg.pm to a driectory included in the @INC array.

There is no DBD::Pg @INC. I checked:

`perl MDBD::Pg -e l'

which returned the usual 'can't locate...'.

> I hope I havn't confused you

Not at all. Thanks for your input :-)

Perl's my strong suit, it's Postgres that I'm new at ;-)

I'm running Perl 5.8.0 on Mac OS X 10.1.5 which required a lot of modules to be re-installed for 5.8.0 to install. So, I'm in the middle of swapping from MySQL -> PostgreSQL and having recompile Perl mods too.

Regards,

Phil.

> ----- Original Message -----
> From: "Phil Dobbin" <phildobbin(at)pobox(dot)com>
> To: "Francois Suter" <dba(at)paragraf(dot)ch>
> Cc: <pgsql-general(at)postgresql(dot)org>
> Sent: Friday, August 02, 2002 9:18 AM
> Subject: Re: [GENERAL] Postgres and Perl: Which DBI module?
>
>
> > On 29/7/02 at 14:48, dba(at)paragraf(dot)ch (Francois Suter) wrote:
> >
> > > > hello,
> > > >
> > > > I just managed to get a simple database running with postgresql.
> > > >
> > > > Now I would like to write some CGI scripts in perl that will be
> able
> > > to
> > > > use it.
> > > >
> > > > What perl module should I use for this?
> > >
> > > I succesfully used the module called Pg:
> >
> > I d/l'd DBD::Pg using CPAN but the Makefile.PL complained that the
> env
> vars `POSTGRES_INCLUDE' and `POSTGRES_LIB' couldn't be found so that
> `libq.so' couldn't be located.
> >
> > Are `POSTGRES_INCLUDE' and `POSTGRES_LIB' set in your $PATH?
> >
> > Any ideas appreciated :-)
> >
> > Regards,
> >
> > Phil.
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to
> majordomo(at)postgresql(dot)org
>

Browse pgsql-general by date

  From Date Subject
Next Message Josh Jore 2002-08-02 15:25:41 Re: How i can empty the buffers of a db
Previous Message Mario Weilguni 2002-08-02 15:07:30 Re: