0

I am trying to install PostGIS in Postgres-xl. Since the newest version of Postgres-XL (9.5r1.4) is based on PostgreSQL 9.5.5, I need to use an older version of PostGIS (2.3.1) due to compatibility issues.

Before PostGIS, I have installed the libgdal-dev, proj_api (ver. 4.9.1), and json-c (version 0.9). So, I successfully executed the PostGIS configure script using

./configure --with-projdir=/usr/local/

but when I tried to build PostGIS using

sudo make

the script returned the following errors:

/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_get_errno_ref'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_strerrno'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.so: undefined reference to `pj_transform'

I have tried many things, such as analysing the makefiles and manually copying files to correct the references, without success. I am running on a PC using Ubuntu 22.04, and need advice to perform this install process, or sugestions of other methods to put Postgres-XL and PostGIS together.

0 Answers0