Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18634

Re: PHP can't find shared library although it's right there

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: PHP can't find shared library although it's right there
Date 2021-05-25 18:22 +0200
Message-ID <ih4milFk5a5U1@mid.individual.net> (permalink)
References <ih4hfjFiqmdU1@mid.individual.net>

Show all headers | View raw


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:
<https://docs.oracle.com/en/database/oracle/oracle-database/21/lacli/instant-client-shared-libraries.html>


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP can't find shared library although it's right there Robert Latest <boblatest@yahoo.com> - 2021-05-25 14:55 +0000
  Re: PHP can't find shared library although it's right there Robert Heller <heller@deepsoft.com> - 2021-05-25 10:47 -0500
  Re: PHP can't find shared library although it's right there John-Paul Stewart <jpstewart@personalprojects.net> - 2021-05-25 11:50 -0400
    Re: PHP can't find shared library although it's right there Robert Heller <heller@deepsoft.com> - 2021-05-25 11:24 -0500
      Re: PHP can't find shared library although it's right there John-Paul Stewart <jpstewart@personalprojects.net> - 2021-05-25 13:40 -0400
  Re: PHP can't find shared library although it's right there Arno Welzel <usenet@arnowelzel.de> - 2021-05-25 18:22 +0200
    Re: PHP can't find shared library although it's right there Robert Latest <boblatest@yahoo.com> - 2021-05-25 17:18 +0000

csiph-web