Cannot Compile Psycopg on OSX (Tiger)
"Stuart Grimshaw" <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to compile Psycopg2 2.0.7 on an Intel Macbook running OSC Tiger (10.4), but the build script seems to think it's got a PPC architecture. Here is the output from "python setup.py install" running install running build running build_py running build_ext building 'psycopg2._psycopg' extension gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/psycopg/psycopgmodule.o build/temp.macosx-10.3-i386-2.5/psycopg/pqpath.o build/temp.macosx-10.3-i386-2.5/psycopg/typecast.o build/temp.macosx-10.3-i386-2.5/psycopg/microprotocols.o build/temp.macosx-10.3-i386-2.5/psycopg/microprotocols_proto.o build/temp.macosx-10.3-i386-2.5/psycopg/connection_type.o build/temp.macosx-10.3-i386-2.5/psycopg/connection_int.o build/temp.macosx-10.3-i386-2.5/psycopg/cursor_type.o build/temp.macosx-10.3-i386-2.5/psycopg/cursor_int.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_qstring.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_pboolean.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_binary.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_asis.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_list.o build/temp.macosx-10.3-i386-2.5/psycopg/adapter_datetime.o -L/opt/local/lib/postgresql83 -lpq -lssl -lcrypto -o build/lib.macosx-10.3-i386-2.5/psycopg2/_psycopg.so /usr/bin/ld: for architecture i386 /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libssl.0.9.8.dylib referenced from: /opt/local/lib/postgresql83/libpq.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libcrypto.0.9.8.dylib referenced from: /opt/local/lib/postgresql83/libpq.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: Undefined symbols: _SSL_pending referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _BIO_ctrl referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _BIO_free referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _BIO_new_file referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _CRYPTO_num_locks referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _CRYPTO_set_id_callback referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _CRYPTO_set_locking_callback referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ENGINE_by_id referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ENGINE_load_private_key referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ERR_get_error referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ERR_pop_to_mark referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ERR_reason_error_string referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _ERR_set_mark referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _OPENSSL_config referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _PEM_read_bio_PrivateKey referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _PEM_read_bio_X509 referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _SSL_CTX_free referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_CTX_get_cert_store referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_CTX_load_verify_locations referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_CTX_new referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_CTX_set_client_cert_cb referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_CTX_set_verify referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_connect referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_free referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_get_error referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_get_ex_data referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_get_peer_certificate referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_library_init referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_load_error_strings referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_new referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_read referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_set_ex_data referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_set_fd referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_shutdown referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _SSL_write referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _TLSv1_method referenced from libpq expected to be defined in /opt/local/lib/libssl.0.9.8.dylib _X509_NAME_get_text_by_NID referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_NAME_oneline referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_STORE_load_locations referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_STORE_set_flags referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_check_private_key referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_free referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib _X509_get_subject_name referenced from libpq expected to be defined in /opt/local/lib/libcrypto.0.9.8.dylib collect2: ld returned 1 exit status /usr/bin/ld: for architecture ppc /usr/bin/ld: warning /opt/local/lib/postgresql83/libpq.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) lipo: can't open input file: /var/tmp//ccCjZddV.out (No such file or directory) error: command 'gcc' failed with exit status 1 Anyone see this before? -- -S Follow me on Twitter: http://twitter.com/stubbs Blog: http://stubblog.wordpress.com My art: http://stuartgrimshaw.imagekind.com Stock Images: http://psc.photoshelter.com/user/stuartgrimshaw