I am trying to install postGIS from source to match the default install of postgreSQL on OS X 10.7. I installed GEOS and PORJ.4 from Kyngchaos and ran
$export MACOSX_DEPLOYMENT_TARGET=10.7 $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" $cd ~/source/postgis postgis $./configure --with-pgconfig=/usr/bin/pg_config --with-geosconfig=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config --with-projdir=/Library/Frameworks/PROJ.framework/Unix
I get this
PostGIS is now configured for x86_64-apple-darwin11.0.0
however after running make i get the following error
collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/dh/11gwx5cs5sl8v4r7qrzf3pd00000gn/T//ccsAdaB9.out (No such file or directory) make: *** [postgis-1.5.so] Error 1 make: *** [postgis] Error 2
Something i don't know about (architecture?) seems wrong here. Any clue? Thanks in advance.