Error with python setup.py build for cx_Oracle
Hi,
I've followed the instructions for installing cx_Oracle so far, but I am stuck at python setup.py build. it gives me the following error:
[jihchen@rws66173fwks cx_Oracle-5.1.2]$ python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/scratch/jihchen/install/instantclient_11_2/sdk/include -I/scratch/jihchen/install/python/Python-2.6.5/include/python2.6 -c cx_Oracle.c -o build/temp.linux-x86_64-2.6-11g/cx_Oracle.o -DBUILD_VERSION=5.1.2
In file included from /scratch/jihchen/install/python/Python-2.6.5/include/python2.6/Python.h:58,
from cx_Oracle.c:6:
/scratch/jihchen/install/python/Python-2.6.5/include/python2.6/pyport.h:685:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
In file included from /scratch/jihchen/install/instantclient_11_2/sdk/include/oci.h:3045,
from cx_Oracle.c:10:
/scratch/jihchen/install/instantclient_11_2/sdk/include/ociap.h:10795: warning: function declaration isn’t a prototype
/scratch/jihchen/install/instantclient_11_2/sdk/include/ociap.h:10801: warning: function declaration isn’t a prototype
error: command 'gcc' failed with exit status 1
I have set up my $ORACLE_HOME by downloading and extracting instant client, and followed the BUILD.txt's instruction to link the .so file with:
ln -s libclntsh.so.11.1 libclntsh.so
What am I missing?
Thanks,
Jihai