title: libclntsh.so: cannot open shared object file: No such file or directory Centos 8 and python
body: <p>i'm trying connect python cx_Oracle with the oracle client library in Centos 8, I have followed the steps showed in <a href="https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html" rel="nofollow noreferrer">https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html</a>, the rpm packages don't work so i used the zip package and config the LD_LIBRARY_PATH to the dir where i unzip the oracle files, in this case: /opt/oracle/lib.</p>
  <p>When i run the script i get:</p>
  <p>cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library:                                                                                                                                                              &quot;/opt/oracle/lib/libclntsh.so: cannot open shared object file: No such file or directory&quot;. See <a href="https://cx-oracle.readthedocs.io/en/latest/" rel="nofollow noreferrer">https://cx-oracle.readthedocs.io/en/latest/</a>                                                                                                                                                             user_guide/installation.html for help</p>
  <p>but if i run: find /opt/oracle/lib/libclntsh.so it's works and the file is there, the env variable it's right according to the error message, but the script still not working, if anyone has any suggestions to fix this i would really appreciate it.</p>
  <p>Update: when i set DPI_DEBUG_LEVEL=64 i get the following output:</p>
  <pre><code>ODPI [04293] 2021-04-10 15:51:06.109: ODPI-C 4.1.0
  ODPI [04293] 2021-04-10 15:51:06.109: debugging messages initialized at level 64
  ODPI [04293] 2021-04-10 15:51:06.110: Context Parameters:
  ODPI [04293] 2021-04-10 15:51:06.110: Environment Variables:
  ODPI [04293] 2021-04-10 15:51:06.110:     ORACLE_HOME =&gt; &quot;/opt/oracle&quot;
  ODPI [04293] 2021-04-10 15:51:06.110:     LD_LIBRARY_PATH =&gt; &quot;/opt/oracle/lib&quot;
  ODPI [04293] 2021-04-10 15:51:06.110: check module directory
  ODPI [04293] 2021-04-10 15:51:06.110: module name is /usr/local/lib64/python3.6/site-packages/cx_Oracle.cpython-36m-aarch64-linux-gnu.so
  ODPI [04293] 2021-04-10 15:51:06.110: load in dir /usr/local/lib64/python3.6/site-packages
  ODPI [04293] 2021-04-10 15:51:06.110: load with name /usr/local/lib64/python3.6/site-packages/libclntsh.so
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: /usr/local/lib64/python3.6/site-packages/libclntsh.so: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with OS search heuristics
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.19.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.19.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.18.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.18.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.12.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.12.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.11.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.11.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.20.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.20.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: load with name libclntsh.so.21.1
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: libclntsh.so.21.1: cannot open shared object file: No such file or directory
  ODPI [04293] 2021-04-10 15:51:06.110: check ORACLE_HOME
  ODPI [04293] 2021-04-10 15:51:06.110: load in dir /opt/oracle/lib
  ODPI [04293] 2021-04-10 15:51:06.110: load with name /opt/oracle/lib/libclntsh.so
  ODPI [04293] 2021-04-10 15:51:06.110: load by OS failure: /opt/oracle/lib/libclntsh.so: cannot open shared object file: No such file or directory
  Traceback (most recent call last):
    File &quot;cdr_parser.py&quot;, line 387, in &lt;module&gt;
      main()
  </code></pre>
  <p>And the script still not working.</p>
  <p>Update 2: when i run: file /opt/oracle/lib/libclntsh.so i get:</p>
  <pre><code>/opt/oracle/lib/libclntsh.so: symbolic link to libclntsh.so.21.1
  </code></pre>
  <p>and running ldd /opt/oracle/lib/libclntsh.so the output is:</p>
  <pre><code>not a dynamic executable
  </code></pre>
  <p>Also, i verified libaio and liabio-devel install and it's correct, my Os's version is 64 bits and the instanclient is 64 bit too.</p>