Re: Installing on Snow Leopard

"Charlie Clark" <[email protected]> Sun, 25 Apr 2010 12:35:41 +0200
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
Am 25.04.2010, 12:00 Uhr, schrieb <[email protected]>:

> It seems that the install process tries to build a 32-bit driver on
> Snow Leopard which is as far as I know, a 64-bit system.  How do I get
> a 64-bit driver?
> My installation on Snow Leopard ends with
> sudo python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building 'psycopg2._psycopg' extension
> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -O3 -DPSYCOPG_DEFAULT_PYDATETIME=1
> -DPSYCOPG_VERSION="2.0.14 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080403
> -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1
> -DHAVE_PQPROTOCOL3=1
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -I. -I/Library/PostgreSQL/8.4/include
> -I/Library/PostgreSQL/8.4/include/postgresql/server -c
> psycopg/psycopgmodule.c -o
> build/temp.macosx-10.3-i386-2.5/psycopg/psycopgmodule.o
> cc1: error: unrecognized command line option "-Wno-long-double"
> cc1: error: unrecognized command line option "-Wno-long-double"
> lipo: can't figure out the architecture type of: /var/tmp//ccmP38pg.out
> error: command 'gcc' failed with exit status 1

Snow Leopard should be running with Python 2.6 so something is wrong with  
your system if Python 2.5 is your python. Apple's versions of Python 2.4  
and 2.5 do not work properly on Snow Leopard if you upgraded and 2.6 was a  
botched job and is already out of date.

My advice is that you install MacPorts [1] and use it to install Python  
and most packages for you:

sudo port install py25-psycopg2 py26-psycopg2 python_select

(even py27-psycopg2 works fine if you can get Python 2.7 installed)

Alternatively, install Python for Mac OS from the Python homepage but I  
prefer using ports to keep up to date.

[1] http://www.macports.org/
-- 
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Psycopg mailing list
[email protected]
http://lists.initd.org/mailman/listinfo/psycopg