古いバージョンの Python にとらわれたくないので、Active Python を使用しています。インスタント クライアントをインストールし、エクスポートを bash プロファイルに追加しましたが、次の不可解なエラーが発生します。
# apy setup.py install --no-compile --root=/tmp/tmpz0JuWASA/cx_Oracle-5.1/_pypminstroot インストールの実行中 実行中のビルド build_ext の実行 「cx_Oracle」拡張機能の構築 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 /opt/ActivePython-2.7/include/python2.7/Python.h:58 からインクルードされたファイルで、 cx_Oracle.c:6 から: /opt/ActivePython-2.7/include/python2.7/pyport.h:849:2: エラー: #error "LONG_BIT 定義がプラットフォームに対して間違っているようです (gcc/glibc 構成が正しくありませんか?)。" /usr/lib/oracle/11.2/sdk/include/oci.h:3029 からインクルードされたファイルで、 cx_Oracle.c:10 から: /usr/lib/oracle/11.2/sdk/include/ociap.h:10788: 警告: 関数宣言はプロトタイプではありません /usr/lib/oracle/11.2/sdk/include/ociap.h:10794: 警告: 関数宣言はプロトタイプではありません エラー: コマンド 'gcc' が終了ステータス 1 で失敗しました