Hello,<div><br></div><div>I have a tutorial for mac, I'm not sure if it is useful for the kind of problem you are having because I found installers (links provided there on the tutorial) for mac.</div><div><br></div><div>



I'm sorry I did not post this earlier, semester vacation only started early and I'm still unable to understand how to post there on the wiki.</div><div><br></div><div><a href="http://wiki.dcc.ufba.br/~CarlosSilva" target="_blank">http://wiki.dcc.ufba.br/~CarlosSilva</a></div>


<div><br></div><div>Tutorial is available on this wiki, just search for the following exactly words: </div><div><br></div><div><span style="color:rgb(51,51,51);font-family:georgia,'times new roman',serif;font-size:13px"><p style="padding-top:0em;padding-right:0em;padding-bottom:0em;padding-left:0em;margin-top:0em;margin-right:0em;margin-bottom:1em;margin-left:0em;line-height:1.5em;text-align:justify">



<strong style="padding-top:0em;padding-right:0em;padding-bottom:0em;padding-left:0em;margin-top:0em;margin-right:0em;margin-bottom:0em;margin-left:0em"><em style="padding-top:0em;padding-right:0em;padding-bottom:0em;padding-left:0em;margin-top:0em;margin-right:0em;margin-bottom:0em;margin-left:0em">Postgres 9.1 e Postgis 1.5.3</em></strong>:</p>



<div><br></div></span></div><div>If anyone could tell me how to post it, or just post at postgis wiki with given credits I would be thankful. </div><div><br></div><div>Best regards,</div><div><br></div><div><br clear="all">

Carlos Andrade<br>

<div><a href="http://carlosandrade.co" target="_blank">http://carlosandrade.co</a></div><br>
<br><br><div class="gmail_quote">2011/12/25 THX1138 <span dir="ltr"><<a href="mailto:ap.joseph@live.com" target="_blank">ap.joseph@live.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<br>
I am new to linux, postgresql and postgis. I have been working on getting<br>
postgis 2.0 up and running on an ubuntu-maverick-amd64 linux server for<br>
about a week now. I am going for raster and topology support.<br>
<br>
I used the following to configure:<br>
<br>
sudo ./configure --with-raster --with-topology<br>
--with-jsondir=/home/zonabili/json-c-0.9<br>
<br>
The configuration file below describes my specs.<br>
<br>
PostGIS is now configured for x86_64-unknown-linux-gnu<br>
<br>
-------------- Compiler Info -------------<br>
 C compiler:           gcc -g -O2<br>
 C++ compiler:         g++ -g -O2<br>
<br>
-------------- Dependencies --------------<br>
 GEOS config:          /usr/local/bin/geos-config<br>
 GEOS version:         3.3.1<br>
 GDAL config:          /usr/bin/gdal-config<br>
 GDAL version:         1.8.0<br>
 PostgreSQL config:    /usr/bin/pg_config<br>
 PostgreSQL version:   PostgreSQL 9.1.2<br>
 PROJ4 version:        47<br>
 Libxml2 config:       /usr/bin/xml2-config<br>
 Libxml2 version:      2.7.7<br>
 JSON-C support:       Yes<br>
 PostGIS debug level:  0<br>
-------------- Extensions --------------<br>
 PostGIS Raster:       0.1.6d<br>
 PostGIS Topology<br>
<br>
-------- Documentation Generation --------<br>
 xsltproc:             /usr/bin/xsltproc<br>
 xsl style sheets:<br>
 dblatex:              /usr/bin/dblatex<br>
 convert:              /usr/bin/convert<br>
I managed to run make and sudo make install with older (and useless for new<br>
functions) versions of gdal and geos. Thus, my guess is that the problems<br>
lies with my install of GEOS or GDAL. There is no 3.3.1 downloadable package<br>
for my linux version so I had to build from source and I probably messed<br>
this up as I am not used to doing it, although I followed the directions<br>
provided on the website and downloaded the tarfile. I did not deviate from<br>
the instructions other than cd-ing to the directory to configure make and<br>
install. I did everything that it explicitly stated that I should do. I<br>
didn't get a message that it built correctly when I built it, so I think<br>
something went wrong as I got the following errors near the end of my failed<br>
postgis build:<br>
<br>
make[2]: Leaving directory `/home/zonabili/postgis-2.0.0SVN/raster/rt_pg'<br>
make -C loader<br>
make[2]: Entering directory `/home/zonabili/postgis-2.0.0SVN/raster/loader'<br>
/bin/bash ../..//libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall<br>
-Wmissing-pr<br>
ototypes -I../rt_core -I/home/zonabili/postgis-2.0.0SVN/liblwgeom<br>
-I/usr/includ<br>
e/gdal -I/usr/local/include raster2pgsql.o ../rt_core/librtcore.a<br>
../rt_core/lib<br>
rtcore.a /home/zonabili/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a<br>
-L/usr/lib<br>
-lgdal1.8.0 -L/usr/local/lib -lgeos_c -lm -o raster2pgsql<br>
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core<br>
-I/home/zonabili/<br>
postgis-2.0.0SVN/liblwgeom -I/usr/include/gdal -I/usr/local/include<br>
raster2pgsql<br>
.o -o raster2pgsql  ../rt_core/librtcore.a<br>
/home/zonabili/postgis-2.0.0SVN/liblw<br>
geom/.libs/liblwgeom.a -L/usr/lib -lgdal1.8.0 -L/usr/local/lib -lgeos_c -lm<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a(lwgeom_geos.o):<br>
In f<br>
unction `LWGEOM2GEOS':<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/lwgeom_geos.c:319: undefined<br>
reference<br>
 to `GEOSGeom_createEmptyPolygon'<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a(lwgeom_geos.o):<br>
In f<br>
unction `lwgeom_sharedpaths':<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/lwgeom_geos.c:1024: undefined<br>
referenc<br>
e to `GEOSSharedPaths'<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/.libs/liblwgeom.a(lwgeom_geos.o):<br>
In f<br>
unction `lwgeom_snap':<br>
/home/zonabili/postgis-2.0.0SVN/liblwgeom/lwgeom_geos.c:961: undefined<br>
reference<br>
to `GEOSSnap'<br>
v collect2: ld returned 1 exit status<br>
make[2]: *** [raster2pgsql] Error 1<br>
make[2]: Leaving directory `/home/zonabili/postgis-2.0.0SVN/raster/loader'<br>
make[1]: *** [rtloader] Error 2<br>
make[1]: Leaving directory `/home/zonabili/postgis-2.0.0SVN/raster'<br>
make: *** [all] Error 1<br>
The JSON-C module was also a problem, as all they say to do with it is untar<br>
it and /.configure make it. but I feel like there is probably more that I<br>
need to do.<br>
<br>
I am really getting frustrated with this as I feel that I am so close, but<br>
keep hitting insurmountable obstacles where I have no clue what to do.<br>
<br>
I would greatly appreciate anyone who could help fix these flagrant errors<br>
and help me navigate this truly hellish installation process! I would be<br>
willing to uninstall everything and start from the beginning, although I<br>
don't actually know how to uninstall the geos because I had to build them<br>
from source and not apt-get!<br>
<br>
I am also new to linux (I finally just figured out how to get postgis 2.0<br>
installed on my windows laptop!) so please be as descriptive as possible.<br>
<br>
Thanks in advance, as this has been a huge headache for me!<br>
<span><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/Installing-a-fully-functional-PostGIS-2.0-on-Ubuntu-Linux-GEOS-GDAL-issues-tp33035173p33035173.html" target="_blank">http://old.nabble.com/Installing-a-fully-functional-PostGIS-2.0-on-Ubuntu-Linux-GEOS-GDAL-issues-tp33035173p33035173.html</a><br>




Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</font></span></blockquote></div><br></div>