Hi William,<div>As you have said, its failing when I set the CFLAGS. </div><div><br></div><div>Sorry I meant to say configure works without the CFLAGS="-Os -arch i386 -arch x86_64", but the make fails.</div><div>

<br></div><div>using the gettext didn't make any difference, I still get the error:</div><div><div>checking for xmlInitParser in -lxml2... no</div><div>configure: error: could not find libxml2 </div><div><br></div><div>

(btw, I want to get postgis2.0 installed on the snow leopard 10.6 to use the postgis raster)</div><div><br></div><div><br></div><br><div class="gmail_quote">On 18 March 2011 15:10, William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">
<br>
> This is strange, when I use the following command<br>
> ./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \<br>
> --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \<br>
> --with-projdir=/Library/Frameworks/PROJ.framework/unix \<br>
> --with-raster --with-topology --disable-nls \<br>
> --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config<br>
><br>
> without setting the environment variables (the exports),<br>
<br>
</div>Without the *FLAGS, you just get a single-arch build, most likely x86_64 on OSX 10.6.  And most builds default to using the debug flag, so I always set CFLAGS to -Os.<br>
<br>
The deployment target is just something I do and is not critical.<br>
<div class="im"><br>
> the compile works (although the make is still failing),<br>
<br>
</div>Well, make IS the compile.  Or do you mean the configure works?<br>
<br>
Maybe --disable-nls isn't all that's needed - what I actually did was configure for my custom gettext, and assumed that disabling it would work.  I suppose since you have Macports you could try using that - instead of --disable-nls, try:<br>


<br>
--with-gettext=/opt/local<br>
<div class="im"><br>
> but when I use the environment variables, the ./configure fails with this error:<br>
> configure: error: could not find libxml2<br>
><br>
> I don't know why it can't find it, when its /opt/local/bin/xml2-config here.<br>
><br>
</div>It should find it from the system, no need for macports.  Though it's possible Macports is confusing the configuration.  Generally, I don't think Macports is automatically checked, it depends on the software.  Straight Gnu configure won't, but some software checks for it.<br>


<div><div></div><div class="h5"><br>
> On 18 March 2011 14:26, William Kyngesburye <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>> wrote:<br>
> On Mar 18, 2011, at 9:13 AM, William Kyngesburye wrote:<br>
><br>
> > On Mar 18, 2011, at 8:34 AM, William Kyngesburye wrote:<br>
> ><br>
> >> 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.<br>


> ><br>
> > Of course, those instructions are for 1.5.  For 2.0:<br>
> ><br>
> > export MACOSX_DEPLOYMENT_TARGET=10.6<br>
> > export CFLAGS="-Os -arch i386 -arch x86_64"<br>
> > export PG_CPPFLAGS="-arch i386 -arch x86_64"<br>
> > export SHLIB_LINK="-arch i386 -arch x86_64"<br>
> > export LDFLAGS="-arch i386 -arch x86_64"<br>
> > ./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \<br>
> > --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \<br>
> > --with-projdir=/Library/Frameworks/PROJ.framework/unix \<br>
> > --with-raster --with-topology \<br>
> > --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config<br>
> ><br>
> ><br>
> > 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.<br>


> ><br>
><br>
> Got - try configuring without NLS:<br>
><br>
> ./configure --with-pgconfig=/usr/local/pgsql-9.0/bin/pg_config \<br>
> --with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \<br>
> --with-projdir=/Library/Frameworks/PROJ.framework/unix \<br>
> --with-raster --with-topology --disable-nls \<br>
> --with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config<br>
><br>
> -----<br>
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
> <a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
><br>
> "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....<br>


><br>
> - the wisdom of Tarzan<br>
><br>
><br>
><br>
<br>
-----<br>
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
<br>
</div></div>"The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."<br>
<br>
- the wisdom of Tarzan<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br></div>