[postgis-users] Error when building from source on mac os x 10.6

William Kyngesburye woklist at kyngchaos.com
Thu Oct 6 07:19:11 PDT 2011


On Oct 6, 2011, at 8:46 AM, Nicolas Ribot wrote:

>> The machine architecture is not the same as what you archs you compile for, though GCC does default to x86_64.
>> 
>> Anyways...
>> 
>> Did you try setting only "-arch x86_64", without i386?
> 
> Hi,
> Also trying to compile Postgis 2.0 on Mac, I set variable you
> mentioned like this:
> 
> export CFLAGS="-Os -arch x86_64"
> export PG_CPPFLAGS="-arch x86_64"
> export SHLIB_LINK="-arch x86_64"
> export LDFLAGS="-arch x86_64"
> 
> and then:
> 
> But no luck, still the same error message.
> If anybody has clue to share with me, it would be nice
> 
Dunno, something in the configuration of dependencies is all I can think of.

With my Postgres 9.1.1 and current frameworks, this works:

./configure --with-pgconfig=/usr/local/pgsql-9.1/bin/pg_config \
--with-geosconfig=/Library/Frameworks/GEOS.framework/unix/bin/geos-config \
--with-projdir=/Library/Frameworks/PROJ.framework/unix \
--with-raster --with-topology \
--with-gdalconfig=/Library/Frameworks/GDAL.framework/Programs/gdal-config


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war




More information about the postgis-users mailing list