471,578 Members | 1,378 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,578 software developers and data experts.

installing cx_Oracle on Unix/Solaris

I'm posting this message here, so that someone googling here will be
able to find it.

I was having problems installing cx_Oracle on Solaris. The build would
fail with a message:
ld: fatal: file /apps/oracle/prod/9.2/lib/libclntsh.so: wrong ELF class: ELFCLASS64

I found the solution on Grig Gheorghiu's blog. Grig had similar
problems when installing on UNIX, specifically AIX. You can find his
very useful report on how he solved the problem, here:


and also here:


To put matters in a nutshell, Oracle 9i installs the 64-bit libraries
in $ORACLE_HOME/lib and the 32-bit libraries in $ORACLE_HOME/lib32.
Since setup.py is looking by default in $ORACLE_HOME/lib, it finds the
64-bit libraries and it fails.

The trick (at least for me) was to change "lib" to "lib32" in my
ORACLE_HOME environment setting, and in setup.py.

MUCH thanks to Grig for his useful blog!

Sep 27 '05 #1
0 2489

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by GrayGeek | last post: by
8 posts views Thread by Rodrigo Daunaravicius | last post: by
3 posts views Thread by hepp | last post: by
5 posts views Thread by jrefactors | last post: by
10 posts views Thread by Ed Stevens | last post: by
8 posts views Thread by ReeseDog | last post: by
7 posts views Thread by Carl K | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.