configure: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path
I want to install from source and when I run the following command:
./configure --with-php-config=/usr/bin/php-config --enable-sockets=yes --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=yes --enable-swoole-json=yes --enable-swoole-curl=yes --with-postgres
I get the following error
configure: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path
my OS:

This is while libpq.so exists
@amirhossein-fzl Can you try to pass the path of libpq when installing?
Can you try to pass the path of libpq when installing
@doubaokun Its path is in /lib64 ...
I run this command:
./configure --with-php-config=/usr/bin/php-config --enable-sockets=yes --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=yes --enable-swoole-json=yes --enable-swoole-curl=yes --with-postgres=/usr/include/pgsql
and output:
configure: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path
and run this command:
./configure --with-php-config=/usr/bin/php-config --enable-sockets=yes --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=yes --enable-swoole-json=yes --enable-swoole-curl=yes --with-postgres=/usr/lib/postgresql
output:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
!!!
!? @doubaokun
please write full document for install opnswoole on archlinux and opensuse.
@doubaokun
please !!