On Thursday 16 April 2015 23:54:21 Simon Chang wrote:
> Hi,
>
> The README.txt says:
> "Please note that an Oracle client (or server) installation is required in
> order to use cx_Oracle."
>
> However, when I pip install on a RHEL 7 server that already has Oracle 11g
> installed, I got this error:
>
> Traceback (most recent call last):
> File "<string>", line 17, in <module>
> File "/tmp/pip-build-JK3O5z/cx-Oracle/setup.py", line 135, in
> <module> raise DistutilsSetupError("cannot locate an Oracle software " \
> distutils.errors.DistutilsSetupError: cannot locate an Oracle software
> installation
>
> Can someone please advise what I'm missing?
>
In order for setup.py to find the Oracle installation, you need to set the
ORACLE_HOME environment variable. For the Oracle client libraries to load, you
also need to add the folder where they are installed to LD_LIBRARY_PATH (with
a server installation, typically, the value to add to LD_LIBRARY_PATH is
"$ORACLE_HOME/lib").
HTH,
Shai.
|