swoole / ext-postgresql

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

Error while `make && make install` #9

Closed tcolonel closed 4 years ago

tcolonel commented 4 years ago

Hello.

What about this error:

/tmp/swoole/ext-postgresql/swoole_postgresql_coro.h:28:33: fatal error: postgresql/libpq-fe.h: No such file or directory

include <postgresql/libpq-fe.h>

                             ^

compilation terminated. make: *** [swoole_postgresql_coro.lo] Error 1

Thanks.

tcolonel commented 4 years ago

Just find out where is libpq-fe.h, open _swoole_postgresqlcoro.h and change the path to the libpq-fe.h:

#ifdef __linux__
#include </usr/include/libpq-fe.h>
#endif

and run again make && make install