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