PostgreSQL PL/Java – Building on Ubuntu
The generic *n*x build instructions largely apply, with a few new points deserving attention.
Ubuntu packages PostgreSQL pieces separately
In addition to the postgresql-version and postgresql-server-dev-version
packages, you may also need to separately install:
libecpg-devlibkrb5-dev