Ask Your Question
1

Oracle Instant Client SDK header files not found

asked 2019-03-13 03:25:02 -0500

leggy gravatar image

updated 2019-03-14 03:26:41 -0500

EDIT:

I've opened a connected question because maybe it could lead to the solution for the present issue.


I'm trying to configure phpstorm db plugin to connect to an oracle remote database.

It uses oci8 driver and so I'm going to install it.

As I run

sudo pecl install oci8

the output stops at this line:

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/18.3/client64/lib' failed

I hadn't much luck in finding any clue on this topic.

I just can see that jdk should be installed and the version actually used is the following:

/etc/alternatives/jre -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.fc2

those headers I guess that should be there in the following folder:

ls /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.fc29.x86_64/jre/lib/amd64 -l
total 4996
drwxr-xr-x. 2 root root    4096 Feb  6 19:07 client
drwxr-xr-x. 2 root root    4096 Mar 11 21:42 jli
-rw-r--r--. 1 root root    1624 Feb  6 18:22 jvm.cfg
-rwxr-xr-x. 1 root root   23872 Feb  6 19:07 libattach.so
-rwxr-xr-x. 1 root root   55752 Feb  6 19:07 libawt_headless.so
-rwxr-xr-x. 1 root root  800088 Feb  6 19:07 libawt.so
-rwxr-xr-x. 1 root root   29768 Feb  6 19:07 libdt_socket.so
-rwxr-xr-x. 1 root root  494928 Feb  6 19:07 libfontmanager.so
-rwxr-xr-x. 1 root root  199808 Feb  6 19:07 libhprof.so
-rwxr-xr-x. 1 root root   66128 Feb  6 19:07 libinstrument.so
-rwxr-xr-x. 1 root root   57720 Feb  6 19:09 libj2gss.so
-rwxr-xr-x. 1 root root   23720 Feb  6 19:07 libj2pcsc.so
-rwxr-xr-x. 1 root root   99200 Feb  6 19:07 libj2pkcs11.so
-rwxr-xr-x. 1 root root   17296 Feb  6 19:07 libjaas_unix.so
-rwxr-xr-x. 1 root root   31008 Feb  6 19:07 libjava_crw_demo.so
-rwxr-xr-x. 1 root root   56688 Feb  6 19:07 libjavajpeg.so
-rwxr-xr-x. 1 root root  272832 Feb  6 19:07 libjava.so
-rwxr-xr-x. 1 root root  299640 Feb  6 19:07 libjdwp.so
-rwxr-xr-x. 1 root root   18248 Feb  6 19:07 libjsdt.so
-rwxr-xr-x. 1 root root   18016 Feb  6 19:07 libjsig.so
-rwxr-xr-x. 1 root root   17936 Feb  6 19:07 libjsound.so
-rwxr-xr-x. 1 root root  523384 Feb  6 19:07 liblcms.so
-rwxr-xr-x. 1 root root   63200 Feb  6 19:07 libmanagement.so
-rwxr-xr-x. 1 root root 1083880 Feb  6 19:07 libmlib_image.so
-rwxr-xr-x. 1 root root  134544 Feb  6 19:07 libnet.so
-rwxr-xr-x. 1 root root  117896 Feb  6 19:07 libnio.so
-rwxr-xr-x. 1 root root   23272 Feb  6 19:07 libnpt.so
-rwxr-xr-x. 1 root root   59416 Feb  6 19:07 libsaproc.so
-rwxr-xr-x. 1 root root   39528 Feb  6 19:07 libsctp.so
-rwxr-xr-x. 1 root root  158784 Feb  6 19:07 libsunec.so
-rwxr-xr-x. 1 ...
(more)
edit retag flag offensive close merge delete

Comments

SDK (Software Development Kit) is not JDK (Java ...)

remi gravatar imageremi ( 2019-03-14 04:25:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-03-14 04:24:33 -0500

remi gravatar image

updated 2019-03-14 04:26:37 -0500

As explained by the error message, you need the SDK.

Packages can be download from Oracle site: Oracle Instant Client

Using the php-oci8 package, you will need the oracle-instantclient18.3-basic package and with the pecl command, for the headers, the oracle-instantclient18.3-devel package.

Notice: the pecl command will only give you the oci8 extension, while the php-oci8 package also provide the PDO driver, pdo_oci.

You will also have to adapt your environment to add the library path of the client (Oracle RPM won't do it automatically), setting the proper LD_LIBRARY_PATH for php-fpm.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-03-13 03:25:02 -0500

Seen: 38 times

Last updated: Mar 14