Received: from mail1.panix.com (mail1.panix.com [166.84.0.212]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA9LdTs79078 for ; Thu, 9 Nov 2000 16:39:29 -0500 (EST) (envelope-from tomg@admin.nrnet.org) Received: from mailhost.nrnet.org (mailhost.nrnet.org [166.84.192.39]) by mail1.panix.com (Postfix) with ESMTP id 4D27F48719; Thu, 9 Nov 2000 16:38:45 -0500 (EST) Received: from admin.nrnet.org (uucp@localhost) by mailhost.nrnet.org (8.9.3/8.9.3) with UUCP id QAA02848; Thu, 9 Nov 2000 16:40:12 -0500 Received: from localhost (tomg@localhost) by admin.nrnet.org (8.9.1/8.9.1) with ESMTP id QAA19675; Thu, 9 Nov 2000 16:42:16 -0500 Date: Thu, 9 Nov 2000 16:42:16 -0500 (EST) From: Thomas Good To: Jimi Thompson Cc: pgsql-admin@postgresql.org Subject: Re: Implementing mod_perl, Perl 5.004, and Postgres In-Reply-To: <3A0B1662.6CEE25B2@link.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200011/63 X-Sequence-Number: 72 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 --------------------------------------------------------------------