Wrong SFCGAL version used for compiling PostGIS 3.6.0 on Ubuntu?
Regina Obe
lr at pcorp.us
Wed Sep 3 14:37:17 PDT 2025
> On debian 12, PG 15, gdal 3.6.2 is the latest system pkg.
>
> However, I've built PostGIS 3.5.3 with non-system pkg GDAL 3.11.3. That
> GDAL version is built with the latest non-system pkg geos 3.14 and sfcgal
> 2.3.0.
>
> I can build PostGIS with the latest non-system pkg GDAL, but not the latest
> non-system pkg geos/sfcgal. Kinda weird.
>
> SELECT postgis_full_version();
>
> POSTGIS="3.5.3 aab5f55" [EXTENSION]
> PGSQL="150"
> GEOS="3.11.1-CAPI-1.17.1"
> SFCGAL="SFCGAL 1.4.1,
> CGAL 5.5.1,
> BOOST 1.74.0"
> PROJ="9.1.1
> NETWORK_ENABLED=OFF
> URL_ENDPOINT=https://cdn.proj.org
> USER_WRITABLE_DIRECTORY=/tmp/proj
> DATABASE_PATH=/usr/share/proj/proj.db" (compiled against PROJ 9.1.1)
> GDAL="GDAL 3.11.3 "Eganville", released 2025/07/12"
> LIBXML="2.9.14"
> LIBJSON="0.16"
> LIBPROTOBUF="1.4.1"
> WAGYU="0.5.0 (Internal)" TOPOLOGY RASTER
>
>
What is your configure statement for building PostGIS.
Are you using the --with-geosconfig=/path/to/geos --with-sfcgal=/path/to/sfcgal parameters.
I've been having issues building too when GDAL is installed in system.
I suspect there is some messiness with GDAL depending on GEOS and raster depending on both GEOS and GDAL.
This seems to have gotten worse when I tried to build SFCGAL from scratch. But in my case I was using system GDAL which
was using an older version of GEOS than what I custom built, so I was bound to have issues anyway.
More information about the postgis-users
mailing list