[pgpool-general: 8790] Re: Cannot configure with the correct psql path

Bo Peng pengbo at sraoss.co.jp
Thu Jun 1 09:54:53 JST 2023


Hi,

> Hi guys!
> 
> I found the psql path by
>  pgpool-II-4.4.3]# which psql
> /usr/bin/psql
> 
> I run this command with the actual psql path on the server
> ./configure --prefix=/usr --with-pgsql=/usr/bin/psql
> 
> but it still fails like this:
> checking for pstat... no
> checking for setproctitle... no
> checking for syslog... yes
> checking for __builtin_types_compatible_p... yes
> checking for pg_config... no
> checking for PQexecPrepared in -lpq... no
> configure: error: libpq is not installed or libpq is old

I assume you are uing the PostgreSQL packages provided by distribution.
To use libpq you will need the header files included in postgresql-devel.

Please install postgresql-devel, then try ./configure again.

Pgpool-II will read the library paths from pg_config installed under /usr/bin/.
In this case I think you don't need to specify --with-pgsql.

-- 
Bo Peng <pengbo at sraoss.co.jp>
SRA OSS LLC
https://www.sraoss.co.jp/


More information about the pgpool-general mailing list