From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "Roger Mason *EXTERN*" <rmason(at)esd(dot)mun(dot)ca>, "Postgres-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: can't compile Pl/Java |
Date: | 2007-10-24 07:05:33 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C26AADFA@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Roger Mason wrote:
> I need to install Pl/java in my 8.0.12 PostgreSQL. According to the
> documentation on the PL/java wiki I must compile from source.
>
> When I run make the following errors occur:
>
[...]
> i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -Wall
> -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels
> -fno-strict-aliasing -fpic -I.
> -I/usr/include/postgresql/pgsql/server
> -I/usr/include/postgresql/pgsql/internal -D_GNU_SOURCE
> -DPKGLIBDIR=\"/usr/lib/postgresql\"
> -I/usr/local/share/pljava-1.3.0/src/C/include
> -I/usr/local/share/pljava-1.3.0/build/jni -DPGSQL_MAJOR_VER=8
> -DPGSQL_MINOR_VER=0 -DPGSQL_PATCH_VER=12
> -I"/home/rmason/.gentoo/java-config-2/current-user-vm/include"
> -I"/home/rmason/.gentoo/java-config-2/current-user-vm/include/linux"
> /usr/local/share/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c
> -o type/JavaWrapper.o
> In file included from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/JNICalls.h:12,
> from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/PgObject.h:12,
> from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/PgObject_priv.h:12,
> from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/type/Type_priv.h:12,
> from
> /usr/local/share/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c:10:
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/pljava.h:29:22: error: postgres.h: No such file or directory
[...]
>
> Then follow many other errors.
>
> The first error (not finding postgres.h) is puzzling because gcc is
> looking in the right place:
>
> /usr/include/postgresql/server/postgres.h
Is it? I see no -I/usr/include/postgresql/server in the
gcc command line. Please check again!
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Harris | 2007-10-24 07:06:38 | Re: (Never?) Kill Postmaster? |
Previous Message | Thomas Kellerer | 2007-10-24 07:01:27 | Re: Using Postgres as a "embedded" / SQL Lite database on Windows |