[postgis-users] postgis 2 installation failing

Ackbar Joolia ackbar at ackadij.com
Fri Mar 18 07:31:58 PDT 2011


This is strange, when I use the following command
./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \
--with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \
--with-projdir=/Library/Frameworks/PROJ.framework/unix \
--with-raster --with-topology --disable-nls \
--with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config

without setting the environment variables (the exports), the compile works
(although the make is still failing), but when I use the environment
variables, the ./configure fails with this error:
configure: error: could not find libxml2

I don't know why it can't find it, when its /opt/local/bin/xml2-config here.

On 18 March 2011 14:26, William Kyngesburye <woklist at kyngchaos.com> wrote:

> On Mar 18, 2011, at 9:13 AM, William Kyngesburye wrote:
>
> > On Mar 18, 2011, at 8:34 AM, William Kyngesburye wrote:
> >
> >> How are you configuring PostGIS?  I have build instructions on my site
> (use the framework alternate at the bottom of the postgis page).  It's more
> than a simple configure, you need to set some environment variables.
> >
> > Of course, those instructions are for 1.5.  For 2.0:
> >
> > export MACOSX_DEPLOYMENT_TARGET=10.6
> > export CFLAGS="-Os -arch i386 -arch x86_64"
> > export PG_CPPFLAGS="-arch i386 -arch x86_64"
> > export SHLIB_LINK="-arch i386 -arch x86_64"
> > export LDFLAGS="-arch i386 -arch x86_64"
> > ./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \
> > --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config
> \
> > --with-projdir=/Library/Frameworks/PROJ.framework/unix \
> > --with-raster --with-topology \
> > --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config
> >
> >
> > So, lwgeom builds, but I get the error in shp2pgsql-core.c.  The other
> shp2pgsql sources compile.  It looks like shp2pgsql-core.c compile doesn't
> get any -I flags so it can't find my libintl header.
> >
>
> Got - try configuring without NLS:
>
> ./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \
> --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \
> --with-projdir=/Library/Frameworks/PROJ.framework/unix \
> --with-raster --with-topology --disable-nls \
> --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting,
> and all for things that the beasts of the jungle would not deign to possess
> - money to purchase the effeminate pleasures of weaklings.  And yet withal
> bound down by silly customs that make them slaves to their unhappy lot while
> firm in the belief that they be the lords of creation enjoying the only real
> pleasures of existence....
>
> - the wisdom of Tarzan
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110318/3e212cfb/attachment.html>


More information about the postgis-users mailing list