installing cx_Oracle.

Bill Scherer bill.scherer at verizonwireless.com
Thu May 24 10:25:49 EDT 2007


Carl K wrote:
> Getting closer, thanks Bill and Diez.
>
> $ export ORACLE_HOME
> $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client
> $ python setup.py build
> $ sudo python setup.py install
>
> $ python -c "import cx_Oracle"
> Traceback (most recent call last):
>    File "<string>", line 1, in ?
> ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or 
> directory
>
> guessing I need to add
> /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/
> to some path?
>   
You can `export 
LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib`

or (assuming a recent RedHat linux (or similar) now), put that path in a 
file, /etc/ld.so.conf.d/oracle.conf

and run /sbin/ldconfig

You'll find the latter operation to be persistent, and the former is not.
> btw - anyone know of a .deb that will install this?
>
> Carl K
>   



More information about the Python-list mailing list