@@ -12,8 +12,8 @@ Before cx_Oracle can be installed, an installation of
1212Python 3.4 and higher are supported.
1313
1414The simplest method of installation is to `Install Using Pip `_. You can also
15- `Install Using GitHub `_. If you run into trouble, check out the section on
16- `Troubleshooting `_.
15+ `Install Using GitHub `_ or ` Install Using RPM `_ . If you run into trouble, check
16+ out the section on `Troubleshooting `_.
1717
1818After cx_Oracle has been installed, you must also `Install Oracle Client `_, if
1919that has not been done already. Oracle Client versions 12.2, 12.1 and 11.2
@@ -47,6 +47,21 @@ In order to install using the source on GitHub, use the following commands::
4747 python setup.py install
4848
4949
50+ Install Using RPM
51+ =================
52+
53+ The RPMs that are provided on `PyPI <https://pypi.python.org/pypi/cx_Oracle >`_
54+ were created on Oracle Linux 6 (Python 2.6) and Oracle Linux 7 (Python 2.7 and
55+ 3.5). They should work on Red Hat Enterprise Linux or CentOS as well but on
56+ other Linux platforms using RPMs (such as Fedora) the paths are different and
57+ you will need to adjust them after installation. The following command will
58+ install the RPM that you have downloaded::
59+
60+ rpm -Uvh <file_name>
61+
62+ where <file_name> refers to the RPM that you downloaded.
63+
64+
5065Install Oracle Client
5166=====================
5267
@@ -137,7 +152,9 @@ If importing cx_Oracle fails:
137152 - Do you get the error "``DPI-1047: Oracle Client library cannot be
138153 loaded ``"? Check the ``PATH `` environment variable on Windows or the
139154 ``LD_LIBRARY_PATH `` environment variable on Linux. On macOS, make sure
140- Oracle Instant Client is in `~/lib ` or `/usr/local/lib `. Check that
155+ Oracle Instant Client is in `~/lib ` or `/usr/local/lib ` and that you are
156+ not using the bundled Python (use `Homebrew <https://brew.sh >`__ or
157+ `Python.org <https://www.python.org/downloads >`__ instead). Check that
141158 Python, cx_Oracle and your Oracle Client libraries are all 64-bit or all
142159 32-bit. Check that the correct `Windows Redistributables
143160 <https://oracle.github.io/odpi/doc/installation.html#windows> `__ have been
0 commit comments