Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: PHP can't find shared library although it's right there Date: Tue, 25 May 2021 18:22:42 +0200 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net 8PH6+h64TX1B1mEEsEERggM/i4IiyFfVDGAXCknRRrnlRjEGRY Cancel-Lock: sha1:1qnBdU4m8sKrUUWvdIr3KVdV2i4= In-Reply-To: Xref: csiph.com comp.lang.php:18634 Robert Latest: > 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 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. Also see: -- Arno Welzel https://arnowelzel.de