zhuangyan: I have tried to get cx_Oracle working on 64-bit FreeBSD with no luck either.
The problem I had is that linux_base-f10 is available for amd64, but runs in i386/32 bit mode. This didn't seem all that bad, since the linux-oracle-instantclient-* ports are 32-bit only.
Then, however, I tried to build cx_Oracle and it fails, because it's trying to build it against a 64-bit version of libclntsh.so, and we installed the 32-bit instantclient.
I exported the following flag, to tell cx_Oracle to build in 32-bit:
- Code: Select all
# export CFLAGS=-m32
But then it complained about not finding 32-bit version of libgcc.a
Currently, we have cx_Oracle working in 32-bit FreeBSD, so I am going to wait until a 64-bit linux_base package is released before trying again. It seems like a big hassle to have to run oracle instant client, cx_Oracle, python, and whatever else in 32-bit while the rest of your system is 64-bit.