<div>I'm trying to install Postgis 2.0 in a ubuntu machine.</div><div><br></div><div>It's the first time I try compiling code</div><div><br></div><div>I was able to configure and make with sucess, but after make check I receive the following error:</div>
<div><br></div><div>-------------------------------</div><div><div>make[1]: Leaving directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/regress'</div><div>---- Making check in raster</div><div>make[1]: Entering directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster'</div>
<div>make -C test check</div><div>make[2]: Entering directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster/test'</div><div>make -C core check</div><div>make[3]: Entering directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster/test/core'</div>
<div>gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../../rt_core -I../../../liblwgeom  -I/usr/include/gdal -I/usr/local/include -c testapi.c</div><div>mode=link gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../../rt_core -I../../../liblwgeom  -I/usr/include/gdal -I/usr/local/include testapi.o ../../rt_core/librtcore.a ../../rt_core/librtcore.a ../../../liblwgeom/.libs/liblwgeom.a -L/usr/lib -lgdal1.8.0 -L/usr/local/lib -lgeos_c -lm  -o testapi</div>
<div>../../../liblwgeom/.libs/liblwgeom.a(lwgeom_geos.o): In function `LWGEOM2GEOS':</div><div>/media/DADOS1/TEMPORARIO/postgis-2.0.0/liblwgeom/lwgeom_geos.c:326: undefined reference to `GEOSGeom_createEmptyPolygon'</div>
</div><div><div>../../../liblwgeom/.libs/liblwgeom.a(lwgeom_geos.o): In function `lwgeom_snap':</div><div>/media/DADOS1/TEMPORARIO/postgis-2.0.0/liblwgeom/lwgeom_geos.c:972: undefined reference to `GEOSSnap'</div>
</div><div>.</div><div>.</div><div>.</div><div>/media/DADOS1/TEMPORARIO/postgis-2.0.0/liblwgeom/lwgeom_geos_clean.c:864: undefined reference to `GEOSGeom_extractUniquePoints'</div><div>collect2: ld returned 1 exit status</div>
<div>make[3]: [testwkb] Error 1 (ignored)</div><div>./testapi</div><div>make[3]: ./testapi: Command not found</div><div>make[3]: *** [check] Error 127</div><div>make[3]: Leaving directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster/test/core'</div>
<div>make[2]: *** [core-check] Error 2</div><div>make[2]: Leaving directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster/test'</div><div>make[1]: *** [check] Error 2</div><div>make[1]: Leaving directory `/media/DADOS1/TEMPORARIO/postgis-2.0.0/raster'</div>
<div>make: *** [check] Error 1</div><div><br></div><div>---------------------------</div><div><br></div><div>I found some clues about what might be round here:</div><div><a href="http://postgis.refractions.net/pipermail/postgis-devel/2012-March/019607.html">http://postgis.refractions.net/pipermail/postgis-devel/2012-March/019607.html</a></div>
<div><br></div><div>Something to do with more than one GEOS installed</div><div><br></div><div>The presented solution would be to change the order of <span style="font-family:courier;font-size:10pt"> "-L/usr/lib -lgdal1.8.0" and "-L/usr/local/lib</span></div>
<div><span style="font-family:courier;font-size:10pt"> -lgeos_c"</span><span style="font-size:10pt"><font face="'arial narrow', sans-serif"> in the makefile.</font></span></div><div><span style="font-size:10pt"><font face="'arial narrow', sans-serif"><br>
</font></span></div><div><font face="'arial narrow', sans-serif">But in witch makefile?</font></div><div><font face="'arial narrow', sans-serif"><br></font></div><div><font face="'arial narrow', sans-serif">Have have changed a bunch of them (raster\rt_core,raster\test\core), and used the make command again. But, in the "make check" the order is mantained and gives the same error.</font></div>
<div><font face="'arial narrow', sans-serif"><br></font></div><div><font face="'arial narrow', sans-serif">Alexandre Neto</font></div>