我使用的是活動Python,因爲我不想被舊版本的Python卡住。我安裝了即時客戶端,增加了出口到我的bash的個人資料,但我發現了這個神祕的錯誤:如何在RHEL上安裝Python的cx_Oracle?
# apy setup.py install --no-compile --root=/tmp/tmpz0JuWASA/cx_Oracle-5.1/_pypminstroot running install running build running build_ext building 'cx_Oracle' extension gcc -pthread -fno-strict-aliasing -fPIC -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/oracle/11.2/sdk/include -I/opt/ActivePython-2.7/include/python2.7 -c cx_Oracle.c -o build/temp.linux-x86_64-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.0.4 In file included from /opt/ActivePython-2.7/include/python2.7/Python.h:58, from cx_Oracle.c:6: /opt/ActivePython-2.7/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." In file included from /usr/lib/oracle/11.2/sdk/include/oci.h:3029, from cx_Oracle.c:10: /usr/lib/oracle/11.2/sdk/include/ociap.h:10788: warning: function declaration isn’t a prototype /usr/lib/oracle/11.2/sdk/include/ociap.h:10794: warning: function declaration isn’t a prototype error: command 'gcc' failed with exit status 1
我從來沒有說過我在說什麼py,我只是想說我不想用RHEL自帶的python 2.4。我完全按照方向。這些說明不起作用,GCC失敗。 – blackrobot