Moved to Mavericks and started seeing this. The same exact thing was working fine on my previous old laptop. ORACLE 12 CLIENT FOR MAC PKG HOW TONot sure how to bypaas this compilation error. LM-SJC-00874420:cx_Oracle-5.1.2 vaidesai$ sudo python setup.py buildĬc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/lib/instantclient_11_2/sdk/include -I/System/Library/Frameworks/amework/Versions/2.7/include/python2.7 -c cx_Oracle.c -o build/temp.macosx-10.9-intel-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.1.2Ĭlang: error: unknown argument: '-mno-fused-madd' Ĭlang: note: this will be a hard error (cannot be downgraded to a warning) in the futureĮrror: command 'cc' failed with exit status 1 tried the same as above but I am getting compiler errors. ORACLE 12 CLIENT FOR MAC PKG 64 BITI am trying to build from source with the 64 bit instant client. I'm not a particularly sophisticated Mac user and would appreciate any insight. ORACLE 12 CLIENT FOR MAC PKG SOFTWARERaise DistutilsSetupError("cannot locate an Oracle software "ĭ: cannot locate an Oracle software installation ORACLE 12 CLIENT FOR MAC PKG INSTALLHowever when I ran the setup.py install I got the following familiar error:ĭaniel-gendler-7103:cx_Oracle-5.1.2 205893$ sudo python setup.py install Ld: warning: ignoring file /Users/205893/Oracle/instantclient_11_2/libclntsh.dylib, file was built for x86_64 which is not the architecture being linked (i386): /Users/205893/Oracle/instantclient_11_2/libclntsh.dylib Python setup.py build finished (with the following warnings:Ĭreating build/lib.macosx-10.9-intel-2.7-11gĬc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. This worked for me (building from source) until the last step. Lipo python.fat -remove x86_64 -output bin/python # then make your virtualenv python 32-bit only: 64 bit seems to work for me so YMMV.īasically: # compile cx_Oracle for 32-bit (requires downloading 32-bit instantclient sources)ĪRCHFLAGS="-arch i386" pip install cx_Oracle Some folks have recommended compiling for 32-bit (i386) instead, although I'm not sure why. Tar -xzf cx_Oracle-$CX_ORA_Įnv ARCHFLAGS="-arch $ARCH" python setup.py build Last step is to simply run pip, you might have to add an arch flag: env ARCHFLAGS="-arch $ARCH" pip install cx_Oracleĭownload cx_ from Sourceforge export CX_ORA_VERSION=5.1.2 (Note I did not have to do anything with ottclasses.zip as suggested in the original utexas instructions.) If you're using Pip: Ln -s libclntsh.dylib.11.2 libclntsh.dylib Tar -xzf instantclient-sdk-$VERSION-macosx-圆4.zip Tar -xzf instantclient-basic-$VERSION-macosx-圆4.zip Unpack both files to that directory: cd $ORACLE_HOME
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |