Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP OCI8 libclntsh.so.23.1()(64bit) needed #263

Closed
Knot1985 opened this issue Aug 5, 2024 · 1 comment
Closed

PHP OCI8 libclntsh.so.23.1()(64bit) needed #263

Knot1985 opened this issue Aug 5, 2024 · 1 comment

Comments

@Knot1985
Copy link

Knot1985 commented Aug 5, 2024

Hello I installed OCI8 on my server, but it shows this error:

Error: 
 Problem 1: cannot install the best update candidate for package php-oci8-8.3.9-1.el9.remi.x86_64
  - nothing provides libclntsh.so.23.1()(64bit) needed by php-oci8-8.3.10-1.el9.remi.x86_64 from remi-modular
 Problem 2: problem with installed package php-oci8-8.3.9-1.el9.remi.x86_64
  - package php-oci8-8.3.9-1.el9.remi.x86_64 from @System requires php-pdo(x86-64) = 8.3.9-1.el9.remi, but none of the providers can be installed
  - package php-oci8-8.3.9-1.el9.remi.x86_64 from remi-modular requires php-pdo(x86-64) = 8.3.9-1.el9.remi, but none of the providers can be installed

I didn't installed Oracle Client 23 because I need to access some old Oracle Databases and Version 23 only works with Databases version 19 or newer.

I'm using Almalinux 9.4

I used this commands:

wget https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-basic-21.12.0.0.0-1.el9.x86_64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/2112000/el9/oracle-instantclient-devel-21.12.0.0.0-1.el9.x86_64.rpm

dnf install oracle-instantclient-basic-21.12.0.0.0-1.el9.x86_64.rpm --allowerasing
dnf install oracle-instantclient-devel-21.12.0.0.0-1.el9.x86_64.rpm --allowerasing

sh -c "echo /usr/lib/oracle/21/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"

ldconfig

dnf install php-oci8

ldd /usr/lib64/php/modules/oci8.so

What I'm doing wrong? I used yum update --nobest to avoid the error.

@remicollet
Copy link
Owner

See #255

I didn't installed Oracle Client 23 because I need to access some old Oracle Databases and Version 23 only works with Databases version 19 or newer.

Sorry, but you MUST use version 23.
BTW, it will work with old databases, even if not officially supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants