[Pgpool-general] trouble configuring pgpool-II

Mark Plutowski mark at keystream.com
Thu Apr 16 23:24:21 UTC 2009


This was for Ubuntu 8.04.  I determined the solution. The missing required
step was to install the dev version of pg_config, via libpq-dev:
# apt-get install libpq-dev
# PGCONFIG=/usr/bin/pg_config  ./configure




On Thu, Apr 9, 2009 at 6:03 PM, Tatsuo Ishii <ishii at sraoss.co.jp> wrote:

> Looks like a platform I'm not familiar with...
>
> What is the platform?
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
>
> > Ishii-san,
> > Thanks for the helpful reply. Unfortunately, I'm not sure where the
> > pg_config command is to be found.
> >
> > Here's what I get when trying to locate it:
> > # locate pg_config
> > /usr/share/postgresql-common/t/140_pg_config.t
> >
> > And then doing the following using the above, still does not work:
> >
> > # PGCONFIG=/usr/share/postgresql-common/t/140_pg_config.t ./configure
> > [...]
> > checking for pg_config... /usr/share/postgresql-common/t/140_pg_config.t
> > ./configure: line 21942: pg_config: command not found
> > ./configure: line 21943: pg_config: command not found
> > checking for PQexecPrepared in -lpq... no
> > configure: error: libpq is not installed or libpq is old
> >
> > Thanks in advance,
> > Mark
> >
> >
> >
> > On Thu, Apr 9, 2009 at 5:27 PM, Tatsuo Ishii <ishii at sraoss.co.jp> wrote:
> >
> > > > Hello,
> > > > I wasn't sure what forum to post this to so finally decided to email
> you
> > > > directly.  I hope you don't mind.  Feel free to post it or let me
> know
> > > where
> > > > to do so if you prefer to answer this in a forum.
> > >
> > > pgpool-general is the perfect place for this kind of questions.
> > >
> > > > I'm having trouble running configure.  It says that "libpq is not
> > > installed
> > > > or libpq is old", although libpq5 seems to be installed.
> > >
> > > Do you have pg_config command in your command search path?  If so, you
> > > do not need to specify --with-pgsql nor --with-pgsql-libdir. Just
> > > ./configure should work.
> > >
> > > Or something like:
> > >
> > > PGCONFIG=/path/to/pgconfig/pg_config ./configure
> > >
> > > Should work as well.
> > > --
> > > Tatsuo Ishii
> > > SRA OSS, Inc. Japan
> > >
> > > > I'm using Postgresql 8.3.5, and pgpool-II-2.2.  Here are the details
> of
> > > what
> > > > was attempted:
> > > >
> > > > root at sj-prod-db3:/tmp/pgpool-II-2.2# psql --version
> > > > psql (PostgreSQL) 8.3.5
> > > >
> > > > root at sj-prod-db3:/# cd /tmp
> > > > root at sj-prod-db3:/tmp# apt-get install build-essential
> > > > root at sj-prod-db3:/tmp# wget
> > > > http://pgfoundry.org/frs/download.php/2108/pgpool-II-2.2.tar.gz
> > > > root at sj-prod-db3:/tmp# tar -xzf pgpool-II-2.2.tar.gz
> > > > root at sj-prod-db3:/tmp# cd /tmp/pgpool-II-2.2
> > > >
> > > > root at sj-prod-db2:/tmp/pgpool-II-2.2# ls /usr/lib/libpq*
> > > > /usr/lib/libpq.so.5  /usr/lib/libpq.so.5.1
> > > >
> > > > *Here is the problem:  *
> > > >
> > > > root at sj-prod-db3:/tmp# ./configure  --with-pgsql=/usr/lib/
> > > > --with-pgsql-libdir=/usr/lib64/
> > > >
> > > > [...stuff deleted...]
> > > > configure: error: libpq is not installed or libpq is old
> > > >
> > > > Thanks in advance,
> > > > --
> > > > - Mark Plutowski
> > >
> >
> >
> >
> > --
> > - Mark Plutowski
>



-- 
- Mark Plutowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgpool-general/attachments/20090416/f3449126/attachment.html 


More information about the Pgpool-general mailing list