By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,280 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,280 IT Pros & Developers. It's quick & easy.

installing cx_Oracle on Unix/Solaris

P: n/a
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:

http://agiletesting.blogspot.com/200...e-on-unix.html

and also here:

http://agiletesting.blogspot.com/200...oracle-on.html

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.