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

THX1138 ap.joseph at live.com
Sun Dec 25 10:53:14 PST 2011


Thanks, for your help on this I would have never figured this out as the
config shows my 3.3.1 GEOS, so I figured it was using the right version when
making. 

The problem is that a dependency of libgdal1-dev (the 1.8 version) is
libgeos-dev which installs and older version of the geos, so if I delete
them, I assume gdal will give me an error when making postgis. 

Perhaps I can uninstall gdal and build gdal from source using the 3.3.1
geos, although I bet this would create another mess.

Can you shed some more light on the editing the makefile option?

Thanks again!

Andrew

 

Sandro Santilli wrote:
> 
> 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------'
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> 

-- 
View this message in context: http://old.nabble.com/Installing-a-fully-functional-PostGIS-2.0-on-Ubuntu-Linux-GEOS-GDAL-issues-tp33035173p33036358.html
Sent from the PostGIS - User mailing list archive at Nabble.com.




More information about the postgis-users mailing list