swoole / ext-postgresql

🐘 Coroutine-based client for PostgreSQL
65 stars 21 forks source link

Make-command showing error under Linux #8

Closed DKepov closed 5 years ago

DKepov commented 5 years ago

PROBLEM:

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:

DKepov commented 5 years ago

Solving the problem after the last update ) Will save someone time ...