takanoriyanagitani / dir_fdw

[draft] (Too) Simple PostgreSQL FDW
MIT License
1 stars 0 forks source link

无法编译 #1

Open pudada123 opened 1 month ago

pudada123 commented 1 month ago

[root@pg1 dir_fdw-main]# cmake . -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (0.3s) -- Generating done (0.0s) -- Build files have been written to: /root/dir_fdw-main [root@pg1 dir_fdw-main]# make [ 50%] Building C object CMakeFiles/dir_fdw.dir/dir_fdw.c.o /root/dir_fdw-main/dir_fdw.c:1:22: fatal error: postgres.h: No such file or directory

include

                  ^

compilation terminated. make[2]: [CMakeFiles/dir_fdw.dir/dir_fdw.c.o] Error 1 make[1]: [CMakeFiles/dir_fdw.dir/all] Error 2 make: *** [all] Error 2 [root@pg1 dir_fdw-main]#

takanoriyanagitani commented 1 month ago

I fixed CMakeLists.txt and added Dockerfiles for PostgreSQL 16, 15, 14, 13, 12.

If you can't compile again, I'll try to fix it again.