Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Life's the same, except for the shoes. -- The Cars


devel / comp.lang.php / PHP can't find shared library although it's right there

SubjectAuthor
* PHP can't find shared library although it's right thereRobert Latest
+- Re: PHP can't find shared library although it's right thereRobert Heller
+* Re: PHP can't find shared library although it's right thereJohn-Paul Stewart
|`* Re: PHP can't find shared library although it's right thereRobert Heller
| `- Re: PHP can't find shared library although it's right thereJohn-Paul Stewart
`* Re: PHP can't find shared library although it's right thereArno Welzel
 `- Re: PHP can't find shared library although it's right thereRobert Latest

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

<ih4hfjFiqmdU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=197&group=comp.lang.php#197

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: boblatest@yahoo.com (Robert Latest)
Newsgroups: comp.lang.php
Subject: PHP can't find shared library although it's right there
Date: 25 May 2021 14:55:47 GMT
Lines: 20
Message-ID: <ih4hfjFiqmdU1@mid.individual.net>
X-Trace: individual.net 6cYVfgJ86jll6Mmph+nvqAC+ZKrkc2IlNFl2zroM7dzb/AxOn6
Cancel-Lock: sha1:DAYYuA9OL/s2eA1WShPGUr1DRu8=
User-Agent: slrn/1.0.3 (Linux)
 by: Robert Latest - Tue, 25 May 2021 14:55 UTC

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?

--
robert

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

<oMOdnS9jcOm7gTD9nZ2dnUU7-a_NnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=198&group=comp.lang.php#198

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 25 May 2021 10:47:50 -0500
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: PHP can't find shared library although it's right there
In-Reply-To: <ih4hfjFiqmdU1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net>
Newsgroups: comp.lang.php
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <oMOdnS9jcOm7gTD9nZ2dnUU7-a_NnZ2d@giganews.com>
Date: Tue, 25 May 2021 10:47:50 -0500
Lines: 33
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-WsCDmyayV4fJk8JJ2bIJFQq5HhFQ/sXxz1pCe7C+WND7CWi7bpYRDU2bBD/wqzJ76TM7NSeEJA9EB6/!kLv4+r5GqzbwJDXlJVsyYcW6bhfFxojqdoSqjOEgdw82pVMqD6jCHk2PQoM1ietiXd4xRQbTY3vj!DZc=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2487
 by: Robert Heller - Tue, 25 May 2021 15:47 UTC

At 25 May 2021 14:55:47 GMT Robert Latest <boblatest@yahoo.com> 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
>
> phpinfo.php lists the OCI8 modules with their authors. What am I missing?

libclntsh.so.21.1 shared library file is missing. The OCI8 module needs the
libclntsh.so.21.1 shared library to also be installed. Yes the error message
is a little confusing.

>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

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

<ih4kmsFjptqU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=199&group=comp.lang.php#199

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstewart@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.lang.php
Subject: Re: PHP can't find shared library although it's right there
Date: Tue, 25 May 2021 11:50:51 -0400
Lines: 29
Message-ID: <ih4kmsFjptqU1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 0/sdEszzp5ZmBoNtB5x4Igho2JTsS5LF1AEw2mD3m5XWqGOXei
Cancel-Lock: sha1:ji++jB5XolUi3u1GrjWOWO5iR7I=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
In-Reply-To: <ih4hfjFiqmdU1@mid.individual.net>
Content-Language: en-CA
 by: John-Paul Stewart - Tue, 25 May 2021 15:50 UTC

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.

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

<ih4milFk5a5U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=200&group=comp.lang.php#200

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (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: <ih4milFk5a5U1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net>
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: <ih4hfjFiqmdU1@mid.individual.net>
 by: Arno Welzel - Tue, 25 May 2021 16:22 UTC

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

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

<yu-dnQ8tl9A4uTD9nZ2dnUU7-K3NnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=201&group=comp.lang.php#201

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 25 May 2021 11:24:05 -0500
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: PHP can't find shared library although it's right there
In-Reply-To: <ih4kmsFjptqU1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net> <ih4kmsFjptqU1@mid.individual.net>
Newsgroups: comp.lang.php
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <yu-dnQ8tl9A4uTD9nZ2dnUU7-K3NnZ2d@giganews.com>
Date: Tue, 25 May 2021 11:24:05 -0500
Lines: 44
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-c3uEOsfpmDr8vufLWrE3RZO7f4eZvm4fSGqHQjySUSmQlp2/hL0l9gJXMZx+U4yKVZ00bCLQ7vPw1Oq!4fi+kuuHO4S9xowRNB9JFlVdmQ0ii3nHQI4GOqKjh0k1f9wD3KIfvJEgGTE+D3GpVtH/QwyU1GYq!9u8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3267
 by: Robert Heller - Tue, 25 May 2021 16:24 UTC

At Tue, 25 May 2021 11:50:51 -0400 John-Paul Stewart <jpstewart@personalprojects.net> wrote:

>
> 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.

If it is installed in a "standard place", ldconfig will take care of it.

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

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

<ih4prlFkgfbU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=202&group=comp.lang.php#202

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: boblatest@yahoo.com (Robert Latest)
Newsgroups: comp.lang.php
Subject: Re: PHP can't find shared library although it's right there
Date: 25 May 2021 17:18:45 GMT
Lines: 14
Message-ID: <ih4prlFkgfbU1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net>
<ih4milFk5a5U1@mid.individual.net>
X-Trace: individual.net 7Nv7d/95QxayqS89cB8TrwCvUjcQ6KQn2YJ43dCJTVvmebAx78
Cancel-Lock: sha1:IqhO2d9b4qQVwUzN94ShIceLRzw=
User-Agent: slrn/1.0.3 (Linux)
 by: Robert Latest - Tue, 25 May 2021 17:18 UTC

Arno Welzel wrote:
>
> 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.

Thanks to you and all the other guys. Found and installed the appropriate rpm
from Oracle, fixed the conf file in /etc/ld.conf.d/, ran ldconfig, restarted
Apache, and voila.

--
robert

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

<ih4r57Fl1v0U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=203&group=comp.lang.php#203

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstewart@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.lang.php
Subject: Re: PHP can't find shared library although it's right there
Date: Tue, 25 May 2021 13:40:54 -0400
Lines: 11
Message-ID: <ih4r57Fl1v0U1@mid.individual.net>
References: <ih4hfjFiqmdU1@mid.individual.net>
<ih4kmsFjptqU1@mid.individual.net>
<yu-dnQ8tl9A4uTD9nZ2dnUU7-K3NnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net T5og1kmMachuKNZFYguLZwvFwl3XP2+FouU/QE5zq1L4M7+8pa
Cancel-Lock: sha1:ZRb354KuFQehQMkhxgJc48YYCPI=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
In-Reply-To: <yu-dnQ8tl9A4uTD9nZ2dnUU7-K3NnZ2d@giganews.com>
Content-Language: en-CA
 by: John-Paul Stewart - Tue, 25 May 2021 17:40 UTC

On 2021-05-25 12:24 p.m., Robert Heller wrote:
> 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.

The error showed that either it was not installed at all or it was not
in a "standard place".

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor