ext-openswoole icon indicating copy to clipboard operation
ext-openswoole copied to clipboard

configure: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path

Open amirhossein-fzl opened this issue 3 years ago • 5 comments

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:

image

This is while libpq.so exists

amirhossein-fzl avatar Sep 15 '22 08:09 amirhossein-fzl

@amirhossein-fzl Can you try to pass the path of libpq when installing?

doubaokun avatar Sep 17 '22 14:09 doubaokun

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

!!!

amirhossein-fzl avatar Sep 18 '22 15:09 amirhossein-fzl

!? @doubaokun

amirhossein-fzl avatar Oct 06 '22 18:10 amirhossein-fzl

please write full document for install opnswoole on archlinux and opensuse.

@doubaokun

amirhossein-fzl avatar Oct 06 '22 19:10 amirhossein-fzl

please !!

amirhossein-fzl avatar Nov 09 '22 13:11 amirhossein-fzl