Click here to get back home

DBD::Pg on machine without Postgres

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
DBD::Pg on machine without Postgres Squet 11-03-2004
Get Chitika Premium
Posted by Squet on November 3, 2004, 11:16 am
Please log in for more thread options
Hi All,
I want my scripts to connect to a remote Postgres server and don't really
want to install Postgres on the webserver. Is there any way round this? When
I try to compile DBD::Pg it asks for my pg_config (which I have to just
leave blank) and it then just throws up loads of errors. I've tried
installing that latest Postgres Lib RPM without success.




Posted by Jonathan Leffler on November 3, 2004, 6:06 pm
Please log in for more thread options
Squet wrote:

> Hi All,
> I want my scripts to connect to a remote Postgres server and don't really
> want to install Postgres on the webserver. Is there any way round this? When
> I try to compile DBD::Pg it asks for my pg_config (which I have to just
> leave blank) and it then just throws up loads of errors. I've tried
> installing that latest Postgres Lib RPM without success.

You either need the Postgres runtime (client connectivity) libraries
on the machine - assuming such exist as a separate component in the
Postgres product set - or you need to install Postgres on your client
machine, or you need to use DBD::Proxy on the client and have a Proxy
daemon running on the machine with the Postgres database server.

Given the error you're getting, I suspect the 'separate component'
part isn't an option.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/


Posted by Patrice Auffret on November 4, 2004, 10:29 am
Please log in for more thread options
On Wed, 3 Nov 2004 10:16:08 -0000

> Hi All,
> I want my scripts to connect to a remote Postgres server and don't really
> want to install Postgres on the webserver. Is there any way round this?
> When
> I try to compile DBD::Pg it asks for my pg_config (which I have to just
> leave blank) and it then just throws up loads of errors. I've tried
> installing that latest Postgres Lib RPM without success.

You need to install the postgresql-devel RPM. It contains pg_config.
You have no other choice if you want to use DBD::Pg.


Posted by Squet on November 8, 2004, 10:53 am
Please log in for more thread options
Patrice Auffret wrote:
> On Wed, 3 Nov 2004 10:16:08 -0000
>
>> Hi All,
>> I want my scripts to connect to a remote Postgres server and don't
>> really want to install Postgres on the webserver. Is there any way
>> round this? When
>> I try to compile DBD::Pg it asks for my pg_config (which I have to
>> just leave blank) and it then just throws up loads of errors. I've
>> tried installing that latest Postgres Lib RPM without success.
>
> You need to install the postgresql-devel RPM. It contains pg_config.
> You have no other choice if you want to use DBD::Pg.

OK, I'll try the Devel package. Thanks.




Similar ThreadsPosted
filecopy from remote machine to local machine February 7, 2006, 8:50 am
How to know what perl modules on my machine October 8, 2004, 4:04 pm
DBD:Excel on unix machine March 9, 2006, 11:18 am
how to execute command on remote machine September 21, 2005, 12:40 am
installing www::mechanize on a windows98 machine November 13, 2005, 8:31 pm
Namespace for Z-machine parse/translate module July 29, 2004, 10:02 am
GD incorrectly renders Arabic on Win32 machine March 6, 2005, 9:28 pm
Trouble installing storable 2.13 with perl 5.8.0 on redhat 9 machine December 10, 2004, 12:06 am
Running compiled Inline C perl scripts on more than one machine February 9, 2006, 12:12 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap