View previous topic :: View next topic |
Author |
Message |
dux n00b
Joined: 17 Jun 2020 Posts: 8
|
Posted: Wed Jun 17, 2020 1:26 am Post subject: PHP - update Oracle Instant Client |
|
|
Hello, everyone. Currently I run PHP 7.4 ebuild with 11.2 Oracle instant client installed. Our company is moving to Oracle version 19, and I need to update instant client, but instant client ebuilds of versions 18.5 and above are named as oracle-instantclient, and PHP looks for oracle-instantclient-basic AND refuses to reinstall. Should I use the latest instant client as a module? If yes, What file should I point at as an extension in php.ini file? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31434 Location: here
|
Posted: Wed Jun 17, 2020 5:44 am Post subject: |
|
|
Welcome to gentoo forum!
You can create a local overlay move php-7.4.6.ebuild (also files directory) and change line
Code: | oci8-instant-client? ( dev-db/oracle-instantclient-basic ) |
with
Code: | oci8-instant-client? ( || ( dev-db/oracle-instantclient-basic
dev-db/oracle-instantclient ) ) |
I tested in my system only the configure phase with oracle-instantclient-19.6.0.0 and seems to work, php find oracle home.
If all work you can open a new bug report. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
dux n00b
Joined: 17 Jun 2020 Posts: 8
|
Posted: Tue Jun 23, 2020 2:16 am Post subject: |
|
|
fedeliallalinea wrote: | Welcome to gentoo forum!
You can create a local overlay move php-7.4.6.ebuild (also files directory) and change line
Code: | oci8-instant-client? ( dev-db/oracle-instantclient-basic ) |
with
Code: | oci8-instant-client? ( || ( dev-db/oracle-instantclient-basic
dev-db/oracle-instantclient ) ) |
I tested in my system only the configure phase with oracle-instantclient-19.6.0.0 and seems to work, php find oracle home.
If all work you can open a new bug report. |
I have tried to make a custom repository, but during compilation there were errors. I have solved this problem as follows
1) recompiled php without oci8 support to reinstall the Oracle client;
2) removed the 11.2.0.4 instant client;
3) manually downloaded the 19.6 instant client distribution files and placed them into the /usr/portage/distfiles folder;
4) installed the 19.6 instant client from the corresponding ebuild;
5) manually created the /usr/lib64/oracle/11.2.0.4/client folder and made there include, lib and lib64 symlinks pointing at /usr/lib64/oracle/client/sdk/include and /usr/lib64/oracle/client/lib64 (both lib and lib64);
6) reinstalled php with oci8 support.
After restarting apache phpinfo() shows php compiled with Oracle client version 19.6. |
|
Back to top |
|
|
|