cx_Oracle on ubuntu 9.04 jaunty

Short list:

  • find python version
python -V
Python 2.6.2
  • download appropriate rpm version: cx_Oracle-5.0.2-10g-py26-1.i386.rpm
  • install rpm using alien (as root or using sudo)
alien -i cx_Oracle-5.0.2-10g-py26-1.i386.rpm
  • fix location
cd /usr/lib/python2.6
ln -s site-packages/cx_Oracle.so
  • test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/phantom/oracle (path to instantclient install)
..$ python -c 'import cx_Oracle'

if you don’t do the export you will get a:

python -c 'import cx_Oracle'
Traceback (most recent call last):
 File "<string>", line 1, in <module>
ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
Related Posts with Thumbnails

Related posts:

  1. Python xml namespace parsing with libxml2 The goal of this tinkering was simple: to parse a...
  2. Python uno openoffice automatization This is a very short example I managed to do...
  3. Ubuntu Lucid Lynx There was not much I expected from the new ubuntu...
  4. Ubuntu 9.10 Karmic Koala This ubuntu installation was the bit of fun expected after...
  5. Sending a fax in ubuntu Conexant fax-modem configuration In the process of sending a fax...

2 Responses

  1. Your second line under the “fix” section appears wrong (bad syntax to create a symbolic link) but I’m not sure what it should be. Can you assist?

  2. Thanks, corrected.

Leave a Reply