pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Good <tomg@admin.nrnet.org>
To: Jimi Thompson <jthompson@link.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Implementing mod_perl, Perl 5.004, and Postgres
Date: Thu, 9 Nov 2000 16:42:16 -0500 (EST)
Message-ID: <Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org> (raw)
In-Reply-To: <3A0B1662.6CEE25B2@link.com>

On Thu, 9 Nov 2000, Jimi Thompson wrote:

> I keep getting error messages from my CGI scripts regarding a file
> called Pg.pm.  Since this appears to be a perl module, I was wondering
> if anyone knows how to go about making Perl and Postgres like each other
> :)

If your use directive in your perl routine states:

use DBI;

And you are getting stderr complaining about missing Pg in @INC
then you are missing DBD::Pg.  Grab it from CPAN and do a build.
This presumes you have the prerequisite: DBI.pm

   Apache ---> DBI.pm --->  DBD::Pg (Pg.pm) ---> Postgres
                |<------ Perl ---------->|

Obviously I have a great future behind me in cartography but I
think you get the idea:  DBI is a generic interface that uses 
a specific driver to access Pg.  DBI and DBD are perl modules.

Good hunting,
Tom
--------------------------------------------------------------------
               SVCMC - Center for Behavioral Health                  
--------------------------------------------------------------------
Thomas Good                          tomg@ { admin | q8 } .nrnet.org
IS Coordinator / DBA                 Phone: 718-354-5528 
                                     Fax:   718-354-5056  
--------------------------------------------------------------------
Powered by:  PostgreSQL     s l a c k w a r e          FreeBSD:
               RDBMS       |---------- linux      The Power To Serve
--------------------------------------------------------------------




view thread (11+ messages)  latest in thread

Message-ID: <Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org>
Permalink:  ../Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org/
Also on:    postgresql.org/message-id/Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tomg@admin.nrnet.org, jthompson@link.com
  Subject: Re: Implementing mod_perl, Perl 5.004, and Postgres
  In-Reply-To: <Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org>
  References: <3A0B1662.6CEE25B2@link.com> <Pine.LNX.4.05.10011091638140.19665-100000@admin.nrnet.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox