Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Today I tried to install oci8 using "pecl install /tmp/oci8-2.2.0.tgz" and it throws error like oracle instant client sdk header files not found linux

I set ORACLE_HOME path but still, I am getting this error. Please help


checking if we're on a 64-bit platform... yes
      checking Oracle Instant Client directory... /usr/lib/oracle/19.11/client64/lib
      checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant 
      Client SDK header files not found
      ERROR: `/var/tmp/oci8/configure --with-php-config=/usr/bin/php-config --with- 
      oci8='instantclient,/usr/lib/oracle/19.11/client64/lib'' failed


What to do here?

What I have tried:

I tried to install oracle-instantclient-19.11-devel package but which one should I install? OL8 or OL7?
Posted
Updated 23-Feb-22 5:14am
Comments
Richard MacCutchan 22-Feb-22 6:10am    
Check the Oracle documentation to see which one is the right choice.
Member 14362033 23-Feb-22 5:42am    
@Richard can you tell me sdk package of 19.11 will solve this problem?

1 solution

As per documentation - oci8-2.2.0 package is for PHP 7 only.
See: PECL :: Package :: oci8 2.2.0 for Windows[^]

If you use different version of PHP, install appropriate package.

I also suggest to read this: Configuring PHP with OCI8[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900