Re: Can't build pyscopg2 in Snow Leopard...
Nathan <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Sep 4, 2009 at 11:06 AM, Jerry LeVan<[email protected]> wrote: > Hi, > > I have downloaded pyscopg2-2.0.12. > > I don't see to have any luck trying to build the rascal > with MacPython 2.6.2 ( Installed in Snow Leopard...) > > Here is a sample build attempt... > > It appears that setup really wants to build > against 10.4... > > Any suggestions? > > Jerry > > > > [mbp:~/python/psycopg2-2.0.12]$ export MACOSX_DEPLOYMENT_TARGET=10.5 > [mbp:~/python/psycopg2-2.0.12]$ python setup.py build > running build > running build_py > creating build/lib.macosx-10.5-fat-2.6 > creating build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/__init__.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/errorcodes.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/extensions.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/extras.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/pool.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/psycopg1.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > copying lib/tz.py -> build/lib.macosx-10.5-fat-2.6/psycopg2 > running build_ext > building 'psycopg2._psycopg' extension > creating build/temp.macosx-10.5-fat-2.6 > creating build/temp.macosx-10.5-fat-2.6/psycopg > gcc -arch i386 -arch ppc -arch i386 -isysroot > /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic > -DNDEBUG -g -O3 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.12 (dt > dec ext pq3)" -DPG_VERSION_HEX=0x080400 -DPSYCOPG_EXTENSIONS=1 > -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 > -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I. > -I/usr/local/pgsql/include -I/usr/local/pgsql/include/server -c > psycopg/psycopgmodule.c -o > build/temp.macosx-10.5-fat-2.6/psycopg/psycopgmodule.o > In file included from > /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4, > from > /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85, > from psycopg/psycopgmodule.c:23: > /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: > No such file or directory > In file included from > /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4, > from > /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85, > from psycopg/psycopgmodule.c:23: > /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: > No such file or directory > lipo: can't figure out the architecture type of: > /var/folders/5N/5N7bzOiYF3ONFPRhfGuq3k+++TI/-Tmp-//ccLDZpf6.out > error: command 'gcc' failed with exit status 1 > [mbp:~/python/psycopg2-2.0.12]$ Hey, I'm getting a similar error trying to install twisted 8.2 from a source tarball on Snow Leopard. I'm guessing that it has something to do with the move to 64-bit python, but I really have no idea. Hopefully enough people have problems that how to handle it soon becomes common knowledge. :-) ~ Nathan