未找到 Oracle Instant Client SDK 头文件

未找到 Oracle Instant Client SDK 头文件

我正在尝试配置 phpstorm db 插件以连接到 oracle 远程数据库。

它使用 oci8 驱动程序,所以我要安装它。(此外,如果我指定使用瘦驱动程序进行连接,它可以连接,但随后查询表失败)

当我奔跑时

sudo pecl install oci8

输出停止在这一行:

检查 Oracle Instant Client SDK 头目录...配置:错误:未找到 Oracle Instant Client SDK 头文件错误:`/var/tmp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8=instantclient,/usr/lib/oracle/18.3/client64/lib' 失败

我没能找到关于这个主题的任何线索。

我只是看到应该安装jdk,实际使用的版本如下:

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

我猜想这些标题应该位于以下文件夹中:

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 root root  124648 Feb  6 19:07 libunpack.so
-rwxr-xr-x. 1 root root   75208 Feb  6 19:07 libverify.so
-rwxr-xr-x. 1 root root   54712 Feb  6 19:09 libzip.so
drwxr-xr-x. 2 root root    4096 Mar 11 21:43 server

我在 Fedora29 下运行。 JAVA_HOMEORACLE_HOMELD_LIBRARY_PATH导出:

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.fc29.x86_64/jre; export JAVA_HOME
ORACLE_HOME=/usr/lib/oracle/18.3/client64; export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

PATHJAVA_HOME连接。

有人知道吗?

相关内容