Skip to content

Commit af01c81

Browse files
Improve installation documentation.
1 parent 22dc8c1 commit af01c81

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

doc/src/installation.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Before cx_Oracle can be installed, an installation of
1212
Python 3.4 and higher are supported.
1313

1414
The 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

1818
After cx_Oracle has been installed, you must also `Install Oracle Client`_, if
1919
that 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+
5065
Install 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

Comments
 (0)