[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
[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]#