tada / pljava

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
http://tada.github.io/pljava/
Other
238 stars 77 forks source link

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

Closed emdao closed 2 months ago

emdao commented 4 months ago

we are compiling pljva with the following command

mvn clean install

But we are getting the following error

var/lib/pgsql/pljava/pljava-so/src/main/c/Backend.c:14:10: fatal error: postgres.h: No such file or directory 14 | #include | ^~~~ compilation terminated. In file included from /var/lib/pgsql/pljava/pljava-so/src/main/c/DualState.c:21: /var/lib/pgsql/pljava/pljava-so/src/main/include/pljava/DualState.h:15:10: fatal error: postgres.h: No such file or directory 15 | #include | ^~~~ compilation terminated. /var/lib/pgsql/pljava/pljava-so/src/main/c/Exception.c:15:10: fatal error: postgres.h: No such file or directory 15 | #include | ^~~~ compilation terminated. /var/lib/pgsql/pljava/pljava-so/src/main/c/ExecutionPlan.c:15:10: fatal error: postgres.h: No such file or directory 15 | #include | ^~~~

we have installed postgres version 15 and our operating system is redhat linux version 9.

Postgres version obtained from redhat nis not the development version.

jcflack commented 4 months ago

Not having the development version installed would explain the failure to find postgres.h.

From what repository did you install the PostgreSQL package? Is there no development version also available there?

jcflack commented 2 months ago

Closed waiting on reporter ... looks like a simple case of not having PostgreSQL dev package installed.