[postgis-users] Installing a fully functional PostGIS 2.0 on Ubuntu Linux GEOS/GDAL issues

Sandro Santilli strk at keybit.net
Sun Dec 25 01:39:57 PST 2011


On Sat, Dec 24, 2011 at 09:12:28PM -0800, THX1138 wrote:

> -------------- Dependencies --------------
>  GEOS config:          /usr/local/bin/geos-config
>  GEOS version:         3.3.1
...
> -L/usr/lib
> -lgdal1.8.0 -L/usr/local/lib -lgeos_c -lm -o raster2pgsql
...
> /home/zonabili/postgis-2.0.0SVN/liblwgeom/lwgeom_geos.c:319: undefined
> reference
>  to `GEOSGeom_createEmptyPolygon'

The problem is with -L/usr/lib coming before -L/usr/local/lib which 
makes the old geos be found before the new one.

Simplest thing would be dropping the old geos as a whole.
Harder, opening the relevant Makefile and removing the -L/usr/lib

--strk; 

  ,------o-. 
  |   __/  |    Thank you for PostGIS-2.0 Topology !
  |  / 2.0 |    http://www.pledgebank.com/postgistopology
  `-o------'




More information about the postgis-users mailing list