Hello,
I'm trying to install the oracle DB extension on this RHEL7 system but I can't
get it to work. The server says on startup:
$ grep oci /var/log/httpd/error_log PHP Warning: PHP Startup: Unable to load dynamic library 'oci8' (tried: /usr/lib64/php/modules/oci8 (/usr/lib64/php/modules/oci8: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/oci8.so (libclntsh.so.21.1: cannot open shared object file: No such file or directory)) in Unknown on line 0
But the file is right there:
$ ls -l /usr/lib64/php/modules/oci8.so
-rwxr-xr-x. 1 root root 185832 May 4 14:13 /usr/lib64/php/modules/oci8.so
Hello,
I'm trying to install the oracle DB extension on this RHEL7 system but I can't
get it to work. The server says on startup:
$ grep oci /var/log/httpd/error_log PHP Warning: PHP Startup: Unable to load dynamic library 'oci8' (tried: /usr/lib64/php/modules/oci8 (/usr/lib64/php/modules/oci8: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/oci8.so (libclntsh.so.21.1: cannot open shared object file: No such file or directory)) in Unknown on line 0
But the file is right there:
$ ls -l /usr/lib64/php/modules/oci8.so
-rwxr-xr-x. 1 root root 185832 May 4 14:13 /usr/lib64/php/modules/oci8.so
phpinfo.php lists the OCI8 modules with their authors. What am I missing?
Hello,
I'm trying to install the oracle DB extension on this RHEL7 system but I can't
get it to work. The server says on startup:
$ grep oci /var/log/httpd/error_log PHP Warning: PHP Startup: Unable to load dynamic library 'oci8' (tried: /usr/lib64/php/modules/oci8 (/usr/lib64/php/modules/oci8: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/oci8.so (libclntsh.so.21.1: cannot open shared object file: No such file or directory)) in Unknown on line 0
But the file is right there:
$ ls -l /usr/lib64/php/modules/oci8.so
-rwxr-xr-x. 1 root root 185832 May 4 14:13 /usr/lib64/php/modules/oci8.so
phpinfo.php lists the OCI8 modules with their authors. What am I missing?
On 2021-05-25 10:55 a.m., Robert Latest wrote:
Hello,
I'm trying to install the oracle DB extension on this RHEL7 system but I can't
get it to work. The server says on startup:
$ grep oci /var/log/httpd/error_log PHP Warning: PHP Startup: Unable to load
dynamic library 'oci8' (tried: /usr/lib64/php/modules/oci8 (/usr/lib64/php/modules/oci8: cannot open shared object file: No such file or
directory), /usr/lib64/php/modules/oci8.so (libclntsh.so.21.1: cannot open shared object file: No such file or directory)) in Unknown on line 0
But the file is right there:
$ ls -l /usr/lib64/php/modules/oci8.so
-rwxr-xr-x. 1 root root 185832 May 4 14:13 /usr/lib64/php/modules/oci8.so
First off, I'm not familiar with the oci8 module itself, so the
following may not be entirely accurate:
The error message seems to be showing that it is trying to load /usr/lib64/php/modules/oci8 and not finding it. Which is to be
expected. Then it tries /usr/lib64/php/modules/oci8.so which it does
find but cannot open because its dependency, libclntsh.so.21.1, is not
found. What does 'ldd /usr/lib64/php/modules/oci8.so' show?
Do you have libclntsh.so.21.1 installed somewhere on your system? If
not you'll need to install it. If it is installed, then you'll need to
set the library path to point to it, so that it can be found when needed.
At Tue, 25 May 2021 11:50:51 -0400 John-Paul Stewart <jpstewart@personalprojects.net> wrote:
Do you have libclntsh.so.21.1 installed somewhere on your system? If
not you'll need to install it. If it is installed, then you'll need to
set the library path to point to it, so that it can be found when needed.
If it is installed in a "standard place", ldconfig will take care of it.
No - the missing library is "libclntsh.so.21.1" not oci8.so.
phpinfo.php lists the OCI8 modules with their authors. What am I missing?
You miss libclntsh.so.21.1, not oci8.so.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 351 |
Nodes: | 16 (2 / 14) |
Uptime: | 29:06:52 |
Calls: | 7,634 |
Files: | 12,796 |
Messages: | 5,688,852 |