Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error while trying to install OCI8

V. TaoNov 20 2023

I installed a new 19c database on Oracle Linux 8.
I installed all Instantclient packages (which took forever because of campatibility issues), including the devel package.

I think I set all the right environments correctly.

I have PHP 8.2 installed with all the standard extentions and then some, plus one that pecl asked for.

I run sudo pecl install oci8

When asked, I type instantclient,/usr/lib/oracle/18.5/client64

and then comes this:

building in /var/tmp/pear-build-rootlo0U4w/oci8-3.3.0
running: /var/tmp/oci8/configure --with-php-config=/bin/php-config --with-oci8=instantclient,/usr/lib/oracle/18.5/client64
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for Oracle Database OCI8 support... yes, shared
checking PHP version... 8.2.12, ok
checking OCI8 DTrace support... no
checking size of long... 8
checking if we're at 64-bit platform... yes
checking Oracle Instant Client directory... /usr/lib/oracle/18.5/client64
**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=/bin/php-config --with-oci8=instantclient,/usr/lib/oracle/18.5/client64' failed**

I did some googling, and all the suggestions for this particular error was to install the devel package. Which I did, just in case something went wrong the first time.
The problem persists.

Can anyone help me, please?

This post has been answered by V. Tao on Nov 20 2023
Jump to Answer
Comments
Post Details
Added on Nov 20 2023
1 comment
3,484 views