ildus / clickhouse_fdw

ClickHouse FDW for PostgreSQL
Apache License 2.0
260 stars 55 forks source link

fatal error: postgres.h: No such file or directory #101

Closed DrivenA closed 1 year ago

DrivenA commented 1 year ago

I have a problem when compiling and installing:

Building C object src/CMakeFiles/clickhouse_fdw.dir/clickhouse_fdw.c.o /home/sigma@ouc/yza/clickhouse_fdw/src/clickhouse_fdw.c:14:10: fatal error: postgres.h: No such file or directory

include "postgres.h"

      ^~~~~~~~~~~~

compilation terminated.

mkabilov commented 1 year ago

You need to install header files. e.g. via installing the packet
postgresql-server-dev-XX

DrivenA commented 1 year ago

You need to install header files. e.g. via installing the packet postgresql-server-dev-XX

I have installed postgresql 13 on my local Ubuntu server. But the "postgres.h" file was not found either. Please tell me how should I install it so that clickhouse_fdw can be used normally? Thanks!

DrivenA commented 1 year ago

I solved the problem perfectly after installing postgresql-server-dev-XX, thank you for your help, I will close this issue.