@@ -12,8 +12,8 @@ Before cx_Oracle can be installed, an installation of
12
12
Python 3.4 and higher are supported.
13
13
14
14
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 `_.
17
17
18
18
After cx_Oracle has been installed, you must also `Install Oracle Client `_, if
19
19
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::
47
47
python setup.py install
48
48
49
49
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
+
50
65
Install Oracle Client
51
66
=====================
52
67
@@ -137,7 +152,9 @@ If importing cx_Oracle fails:
137
152
- Do you get the error "``DPI-1047: Oracle Client library cannot be
138
153
loaded ``"? Check the ``PATH `` environment variable on Windows or the
139
154
``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
141
158
Python, cx_Oracle and your Oracle Client libraries are all 64-bit or all
142
159
32-bit. Check that the correct `Windows Redistributables
143
160
<https://oracle.github.io/odpi/doc/installation.html#windows> `__ have been
0 commit comments