[postgis-users] PostGIS 2.0 (SVN rev7683) from source on Lion using MacPorts for dependencies

JP Glutting jpglutting at gmail.com
Mon Aug 1 05:14:04 PDT 2011

Hello All,

I'm trying to build PostGIS based on MacPorts dependencies (GEOS and
PostgreSQL 9.0) on OS X 10.7 (Lion) with the new XCode. Macports puts
everything into /opt/local.

I amsetting the following environmental variables:

export CPPFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
export CPATH=/opt/local/include
export LIBRARY_PATH=/opt/local/lib

configuring with:

./configure --with-projdir=/opt/local --with-raster

and compiling. I keep getting the following error:

ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/k0/lzz_jzld03d8yg881mnbh7_h0000gp/T//ccWpI3E5.out (No such file
or directory)
make[1]: *** [postgis-2.0.so] Error 1
make: *** [all] Error 1

I tried configuring using Wiliam Kyngsbury's options:

   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"

but that doesn't seem to help. Any hints? What should I try to get more
information on the problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110801/0abb0cd0/attachment.html>

More information about the postgis-users mailing list