Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法编译 #1

Open
pudada123 opened this issue May 19, 2024 · 1 comment
Open

无法编译 #1

pudada123 opened this issue May 19, 2024 · 1 comment

Comments

@pudada123
Copy link

[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 <postgres.h>
^
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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants