Ich versuche, psycopg2 unter Mac OS 10.6.3 zu installieren. es behauptet, dass es "stdarg.h" nicht finden kann, aber ich kann sehen, dass es dort ist; was soll ich machen

Ich versuche verzweifelt, psycopg2 erfolgreich zu installieren, stoße aber weiterhin auf Fehler. Die neueste scheint darin zu bestehen, "stdarg.h" nicht zu finden (siehe Code unten). Ich kann jedoch mit eigenen Augen erkennen, dass eine Datei mit dem Namen stdarg.h unter /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h vorhanden ist (wo behauptet wird, dass sie nichts finden kann) Keine Ahnung, was ich dagegen tun soll.

Ich verwende Mac OS 10.6.3 und habe in den letzten Tagen sichergestellt, dass ich über die neuesten OS-Entwicklertools verfüge.

Ich habe Python 2.6.2 und PostgreSQL 8.4, wenn das einen Unterschied macht.

python setup.py install    
running install
running build
running build_py
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.macosx-10.3-fat-2.6
creating build/temp.macosx-10.3-fat-2.6/psycopg
gcc -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.2.1 (dt dec ext pq3)" -DPG_VERSION_HEX=0x080404 -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/opt/local/include/postgresql84 -I/opt/local/include/postgresql84/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.3-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:27:
/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:27:
/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/MQ/MQ-tWOWWG+izzuZCrAJpzk+++TI/-Tmp-//ccakFhRS.out
error: command 'gcc' failed with exit status 

Antworten auf die Frage(6)

Ihre Antwort auf die Frage