In file included from /DIR/ext-postgresql-master/swoole_postgresql_coro.cc:17:0:
/DIR/ext-postgresql-master/swoole_postgresql_coro.h:28:10: fatal error: postgresql/libpq-fe.h: Нет такого файла или каталога
#include <postgresql/libpq-fe.h>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:194: recipe for target 'swoole_postgresql_coro.lo' failed
make: *** [swoole_postgresql_coro.lo] Error 1
RESOLVE:
So try installing libpq-dev or its equivalent for your OS:
For Ubuntu/Debian systems: sudo apt-get install libpq-dev
On Red Hat Linux (RHEL) systems: yum install postgresql-devel
For Mac Homebrew: brew install postgresql
For Mac MacPorts PostgreSQL: gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
PROBLEM:
RESOLVE:
So try installing libpq-dev or its equivalent for your OS:
sudo apt-get install libpq-dev
yum install postgresql-devel
brew install postgresql
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
zypper in postgresql-devel
pacman -S postgresql-libs