pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
DBD::Pg without Postgresql installed
4+ messages / 2 participants
[nested] [flat]

* DBD::Pg without Postgresql installed
@ 2005-06-16 11:36 Sean Davis <sdavis2@mail.nih.gov>
  2005-06-16 12:02 ` Re: DBD::Pg without Postgresql installed Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 4+ messages in thread

From: Sean Davis @ 2005-06-16 11:36 UTC (permalink / raw)
  To: pgsql-interfaces

I should know the answer to this, but I don't--Is it possible to 
install DBD::Pg without Postgresql being installed?  Trying from CPAN 
seems to imply not (pg_config needed).  Just wanted confirmation....

Thanks,
Sean




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: DBD::Pg without Postgresql installed
  2005-06-16 11:36 DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
@ 2005-06-16 12:02 ` Michael Fuhr <mike@fuhr.org>
  2005-06-16 12:09   ` Re: DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Fuhr @ 2005-06-16 12:02 UTC (permalink / raw)
  To: Sean Davis <sdavis2@mail.nih.gov>; +Cc: pgsql-interfaces

On Thu, Jun 16, 2005 at 07:36:56AM -0400, Sean Davis wrote:
>
> I should know the answer to this, but I don't--Is it possible to 
> install DBD::Pg without Postgresql being installed?  Trying from CPAN 
> seems to imply not (pg_config needed).  Just wanted confirmation....

DBD::Pg links against libpq, so to build it you need that library
and header files like libpq-fe.h; as you've discovered, the module
uses pg_config to learn about where things are installed.  At runtime
you'll probably need at least the libpq.so shared library.  You
shouldn't need to have a server running or even installed, but
you'll need at least some kind of client installation.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: DBD::Pg without Postgresql installed
  2005-06-16 11:36 DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
  2005-06-16 12:02 ` Re: DBD::Pg without Postgresql installed Michael Fuhr <mike@fuhr.org>
@ 2005-06-16 12:09   ` Sean Davis <sdavis2@mail.nih.gov>
  2005-06-16 13:08     ` Re: DBD::Pg without Postgresql installed Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 4+ messages in thread

From: Sean Davis @ 2005-06-16 12:09 UTC (permalink / raw)
  To: Michael Fuhr <mike@fuhr.org>; +Cc: pgsql-interfaces


On Jun 16, 2005, at 8:02 AM, Michael Fuhr wrote:

> On Thu, Jun 16, 2005 at 07:36:56AM -0400, Sean Davis wrote:
>>
>> I should know the answer to this, but I don't--Is it possible to
>> install DBD::Pg without Postgresql being installed?  Trying from CPAN
>> seems to imply not (pg_config needed).  Just wanted confirmation....
>
> DBD::Pg links against libpq, so to build it you need that library
> and header files like libpq-fe.h; as you've discovered, the module
> uses pg_config to learn about where things are installed.  At runtime
> you'll probably need at least the libpq.so shared library.  You
> shouldn't need to have a server running or even installed, but
> you'll need at least some kind of client installation.
>

Michael,

Thanks.  Just to follow-up, are there sources to build just a client 
installation?  It looks to me like not.  I don't have a problem 
building a server on each workstation that will be accessing postgres, 
but if there is a way to keep things cleaner and install only the 
client (or client libraries), that would be great.

Thanks again,
Sean




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: DBD::Pg without Postgresql installed
  2005-06-16 11:36 DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
  2005-06-16 12:02 ` Re: DBD::Pg without Postgresql installed Michael Fuhr <mike@fuhr.org>
  2005-06-16 12:09   ` Re: DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
@ 2005-06-16 13:08     ` Michael Fuhr <mike@fuhr.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Fuhr @ 2005-06-16 13:08 UTC (permalink / raw)
  To: Sean Davis <sdavis2@mail.nih.gov>; +Cc: pgsql-interfaces

On Thu, Jun 16, 2005 at 08:09:11AM -0400, Sean Davis wrote:
> 
> Just to follow-up, are there sources to build just a client 
> installation?

I'm not aware of a simple way to build just a client installation
with the standard sources, but some vendors provide pre-built,
client-only packages.  Even if you're building from source, you
could easily wrap your own client-only package for installation on
other systems (assuming compatible platforms).  If you don't intend
to build anything on those other systems, then you might need only
libpq.so and perhaps a few other files (psql, pg_dump, etc.);
otherwise you'll also want header files and programs like pg_config.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2005-06-16 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-16 11:36 DBD::Pg without Postgresql installed Sean Davis <sdavis2@mail.nih.gov>
2005-06-16 12:02 ` Michael Fuhr <mike@fuhr.org>
2005-06-16 12:09   ` Sean Davis <sdavis2@mail.nih.gov>
2005-06-16 13:08     ` Michael Fuhr <mike@fuhr.org>

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