[cx-oracle-users] Python 2.5, cx_Oracle and 64 bit oracle issues
Brought to you by:
atuining
From: Rajarshi G. <raj...@gm...> - 2011-06-12 12:07:56
|
Hi, I have successfully install cx_Oracle using pip, Oracle 32 bit libraries on OS X (10.5). While this lets me work on the command line after setting my paths appropriately, I'd like to use it in a mod_wsgi environment which is running in 64 bit mode. The version of Python is a multi-architecture bundle (i386 and x86_64) so I've been trying to get cx_Oracle to use the 64 bit libs. But when I do pip install cx_Oracle with DYLD_LIBRARY_PATH point to the 64 bit version of Oracle, I see the following during installation: gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5-10g/cx_Oracle.o -L/Users/guhar/oracle/lib -L/Users/guhar/oracle/ -lclntsh -o build/lib.macosx-10.5-i386-2.5-10g/cx_Oracle.so -shared-libgcc ld warning: in /Users/guhar/oracle/lib/libclntsh.dylib, file is not of required architecture ld warning: in /Users/guhar/oracle/lib/libclntsh.dylib, file is not of required architecture It looks like gcc is forcing compilation for i386 but with 64 bit libs. How can I indicate to pip that it should compile for x86_64? Thanks, -- Rajarshi Guha NIH Chemical Genomics Center |