Question

I'm having some problems with Postgres/PostGIS after rebuilding my GDAL library:(

I wanted to add MrSID support in GDAL so rebuilt it with the MrSID SDK. Everything compiled ok and I am now able to open Raster .sid files within QGIS.

BUT I seem to have screwed my Postgres 9.3 install as now I have no PostGIS support. If I try and open previously functioning postgis databases in QGIS I get a ton of error messages indicating that my database has no working PostGIS support.

When I look at my databases in PGADMIN3 I get the following error: ERROR: could not load library "/usr/lib/postgresql/9.3/lib/postgis-2.1.so": /usr/lib/postgresql/9.3/lib/postgis-2.1.so: undefined symbol: GEOSHausdorffDistance

The postgis-2.1.so library is definitely present on my system and was working fie before I recompiled GDAL.

I'm running Ubuntu 13.10, Postgres 9.3, PostGIS 2.1, and GDAL 1.10.

This is how I compiled GDAL 1.10:

./configure --with-geos=yes --with-sqlite3 --with-python --with-spatialite --with-fgdb=/usr/local/FileGDB_API --with-postgres --with-odbc --with-curl=yes --with-mrsid=/usr/local/MrSID_DSDK/Raster_DSDK --with-mrsid_lidar=/usr/local/MrSID_DSDK/Lidar_DSDK --with-poppler=yes --with-jasper=yes --with-opencl=no --with-ogdi=no

Anyone have any idea how to fix this? Do I need to recompile Postgis against Gdal?!

Really appreciate any help with this for as usual I urgently need to use my postgis data!

Thanks

Marty

Was it helpful?

Solution

The simplest way was to just rebuild everything - thanks @joop

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top