<p dir="ltr">I was able to successfully build this on a 32-bit virtual machine a week ago:<br>
<a href="http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1204src">http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1204src</a></p>
<p dir="ltr">I'm not sure what the problem is for your situation, but perhaps you configured the build differently. Try also recompiling GDAL.</p>
<p dir="ltr">You should have e.g. /usr/lib/i386-linux-gnu/<a href="http://libxml2.la">libxml2.la</a> from libxml2-dev as shown here<br>
<a href="http://packages.ubuntu.com/precise/i386/libxml2-dev/filelist">http://packages.ubuntu.com/precise/i386/libxml2-dev/filelist</a><br>
so maybe try:<br>
sudo apt-get install --reinstall libxml2-dev</p>
<p dir="ltr">-Mike</p>
<div class="gmail_quote">On 19 Nov 2013 08:22, "Paolo Corti" <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list<br>
<br>
When compiling PostGIS 2.1.1 I am getting the following error on my<br>
Ubuntu 12.04 box (when making):<br>
<br>
...<br>
make[2]: Entering directory `/opt/gis/postgis/postgis-2.1.1/raster/loader'<br>
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I../rt_core<br>
-I../../liblwgeom  -I/usr/local/include -I/usr/include   -c<br>
raster2pgsql.c<br>
/bin/bash ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall<br>
-Wmissing-prototypes -I../rt_core -I../../liblwgeom<br>
-I/usr/local/include -I/usr/include   ../rt_core/librtcore.a<br>
raster2pgsql.o ../../liblwgeom/<a href="http://liblwgeom.la" target="_blank">liblwgeom.la</a> -L/usr/local/lib -lgdal<br>
-L/usr/lib -lgeos_c  -lc -lm -o raster2pgsql<br>
libtool: link: cannot find the library<br>
`/usr/lib/i386-linux-gnu/<a href="http://libxml2.la" target="_blank">libxml2.la</a>' or unhandled argument<br>
`/usr/lib/i386-linux-gnu/<a href="http://libxml2.la" target="_blank">libxml2.la</a>'<br>
make[2]: *** [raster2pgsql] Error 1<br>
make[2]: Leaving directory `/opt/gis/postgis/postgis-2.1.1/raster/loader'<br>
make[1]: *** [rtloader] Error 2<br>
make[1]: Leaving directory `/opt/gis/postgis/postgis-2.1.1/raster'<br>
<br>
Effectively, the <a href="http://libxml2.la" target="_blank">libxml2.la</a> file is not on my computer.<br>
The libxml2 and libxml2-dev versions I am using is the one from ubuntu<br>
precise repository:<br>
<br>
2.8.0+dfsg1-5ubuntu2.2~precise1<br>
2.8.0+dfsg1-5ubuntu2.2~precise1<br>
<br>
any hint? Upgrading libxml2?<br>
Note: I can successfully compile PostGIS 2.0.2 in the same machine.<br>
<br>
thanks a lot<br>
p<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div>