Ah yes, what that means is that you have 64-bit Oracle installed on your
machine but you have 32-bit Python installed. You need to make sure that
they are consistent -- either install 32-bit Oracle or install a 64-bit
Python. Don't forget about the -m64 flag to gcc which tells it to build
64-bit code. Does that clear up the issue?
ser...@ac... wrote:
> Hi all,
>
>
>
> I’m trying to set up cx_oracle 4.0.1 on a solaris box where Oracle 9.2.0
> is installed. When I run “python setup.py build” I get the following error:
>
>
>
> running build
>
> running build_ext
>
> building 'cx_Oracle' extension
>
> gcc -shared build/temp.solaris-2.8-sun4u-2.3/cx_Oracle.o
> -L/opt/app/oracle/product/9.2.0/lib -lclntsh -o
> build/lib.solaris-2.8-sun4u-2.3/cx_Oracle.so -s
>
> ld: fatal: file /opt/app/oracle/product/9.2.0/lib/libclntsh.so: wrong
> ELF class: ELFCLASS64
>
> ld: fatal: File processing errors. No output written to
> build/lib.solaris-2.8-sun4u-2.3/cx_Oracle.so
>
> collect2: ld returned 1 exit status
>
> error: command 'gcc' failed with exit status 1
>
>
>
>
>
> Any help would be appreciated.
>
> Thanks in advance.
>
> ---Sergi
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete
> the original. Any other use of the email by you is prohibited.
>
|