sh-3.2# python setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.3-ppc-2.5
creating build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/__init__.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/extensions.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/extras.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/pool.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/psycopg1.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
copying lib/tz.py -> build/lib.macosx-10.3-ppc-2.5/psycopg2
running build_ext
Warning: /bin/sh: pg_config: command not found
building 'psycopg2._psycopg' extension
creating build/temp.macosx-10.3-ppc-2.5
creating build/temp.macosx-10.3-ppc-2.5/psycopg
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 -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.8 (dec dt ext pq3)" -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. -c psycopg/psycopgmodule.c -o build/temp.macosx-10.3-ppc-2.5/psycopg/psycopgmodule.o
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:27:22: error: libpq-fe.h: No such file or directory
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:146: error: syntax error before 'PGconn'
In file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:62: error: syntax error before 'PGconn'
./psycopg/connection.h:62: warning: no semicolon at end of struct or union
./psycopg/connection.h:79: error: syntax error before '}' token
./psycopg/connection.h:79: warning: data definition has no type or storage class
./psycopg/connection.h:82: error: syntax error before '*' token
./psycopg/connection.h:83: error: syntax error before '*' token
./psycopg/connection.h:84: error: syntax error before '*' token
./psycopg/connection.h:85: error: syntax error before '*' token
./psycopg/connection.h:86: error: syntax error before '*' token
./psycopg/connection.h:87: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:30:
./psycopg/cursor.h:41: error: syntax error before 'connectionObject'
./psycopg/cursor.h:41: warning: no semicolon at end of struct or union
./psycopg/cursor.h:43: error: syntax error before ':' token
./psycopg/cursor.h:44: error: syntax error before ':' token
./psycopg/cursor.h:45: error: syntax error before ':' token
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:27:22: error: libpq-fe.h: No such file or directory
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:146: error: syntax error before 'PGconn'
In file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:62: error: syntax error before 'PGconn'
./psycopg/connection.h:62: warning: no semicolon at end of struct or union
./psycopg/connection.h:79: error: syntax error before '}' token
./psycopg/connection.h:79: warning: data definition has no type or storage class
./psycopg/connection.h:82: error: syntax error before '*' token
./psycopg/connection.h:83: error: syntax error before '*' token
./psycopg/connection.h:84: error: syntax error before '*' token
./psycopg/connection.h:85: error: syntax error before '*' token
./psycopg/connection.h:86: error: syntax error before '*' token
./psycopg/connection.h:87: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:30:
./psycopg/cursor.h:41: error: syntax error before 'connectionObject'
./psycopg/cursor.h:41: warning: no semicolon at end of struct or union
./psycopg/cursor.h:43: error: syntax error before ':' token
./psycopg/cursor.h:44: error: syntax error before ':' token
./psycopg/cursor.h:45: error: syntax error before ':' token
./psycopg/cursor.h:57: error: syntax error before '*' token
./psycopg/cursor.h:57: warning: data definition has no type or storage class
./psycopg/cursor.h:59: error: syntax error before 'lastoid'
./psycopg/cursor.h:59: warning: data definition has no type or storage class
./psycopg/cursor.h:81: error: syntax error before '}' token
./psycopg/cursor.h:81: warning: data definition has no type or storage class
./psycopg/cursor.h:84: error: syntax error before '*' token
./psycopg/cursor.h:57: error: syntax error before '*' token
./psycopg/cursor.h:57: warning: data definition has no type or storage class
./psycopg/cursor.h:59: error: syntax error before 'lastoid'
./psycopg/cursor.h:59: warning: data definition has no type or storage class
./psycopg/cursor.h:81: error: syntax error before '}' token
./psycopg/cursor.h:81: warning: data definition has no type or storage class
./psycopg/cursor.h:84: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:27:28: error: libpq/libpq-fs.h: No such file or directory
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:41: error: syntax error before 'connectionObject'
./psycopg/lobject.h:41: warning: no semicolon at end of struct or union
./psycopg/lobject.h:47: error: syntax error before 'oid'
./psycopg/lobject.h:47: warning: data definition has no type or storage class
./psycopg/lobject.h:48: warning: data definition has no type or storage class
./psycopg/lobject.h:52: error: syntax error before '*' token
./psycopg/lobject.h:55: error: syntax error before '*' token
./psycopg/lobject.h:56: error: syntax error before '*' token
./psycopg/lobject.h:58: error: syntax error before '*' token
./psycopg/lobject.h:59: error: syntax error before '*' token
./psycopg/lobject.h:61: error: syntax error before '*' token
./psycopg/lobject.h:62: error: syntax error before '*' token
./psycopg/lobject.h:63: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:33:
./psycopg/microprotocols.h:55: error: syntax error before 'connectionObject'
./psycopg/microprotocols.h:58: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:27:28: error: libpq/libpq-fs.h: No such file or directory
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:41: error: syntax error before 'connectionObject'
./psycopg/lobject.h:41: warning: no semicolon at end of struct or union
./psycopg/lobject.h:47: error: syntax error before 'oid'
./psycopg/lobject.h:47: warning: data definition has no type or storage class
./psycopg/lobject.h:48: warning: data definition has no type or storage class
./psycopg/lobject.h:52: error: syntax error before '*' token
./psycopg/lobject.h:55: error: syntax error before '*' token
./psycopg/lobject.h:56: error: syntax error before '*' token
./psycopg/lobject.h:58: error: syntax error before '*' token
./psycopg/lobject.h:59: error: syntax error before '*' token
./psycopg/lobject.h:61: error: syntax error before '*' token
./psycopg/lobject.h:62: error: syntax error before '*' token
./psycopg/lobject.h:63: error: syntax error before '*' token
In file included from psycopg/psycopgmodule.c:33:
./psycopg/microprotocols.h:55: error: syntax error before 'connectionObject'
./psycopg/microprotocols.h:58: error: syntax error before '*' token
psycopg/psycopgmodule.c: In function 'psyco_register_type':
psycopg/psycopgmodule.c: In function 'psyco_register_type':
psycopg/psycopgmodule.c:249: error: syntax error before ')' token
psycopg/psycopgmodule.c:252: error: syntax error before ')' token
psycopg/psycopgmodule.c:249: error: syntax error before ')' token
psycopg/psycopgmodule.c:252: error: syntax error before ')' token
lipo: can't figure out the architecture type of: /var/tmp//ccgvMJ2b.out
error: command 'gcc' failed with exit status 1