Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP - update Oracle Instant Client
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dux
n00b
n00b


Joined: 17 Jun 2020
Posts: 8

PostPosted: Wed Jun 17, 2020 1:26 am    Post subject: PHP - update Oracle Instant Client Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31434
Location: here

PostPosted: Wed Jun 17, 2020 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
dux
n00b
n00b


Joined: 17 Jun 2020
Posts: 8

PostPosted: Tue Jun 23, 2020 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum