アクティブな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