1

我尝试安装 OCI8 + PHP 我可以在 sqlplus 中访问 mi DB

我试试这个

pecl install oci8

结果是这样的

grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :

在脚本提示中,我写了这个

instantclient,/usr/local/lib

但我有这个问题

/private/tmp/pear/install/oci8/oci8.c:35:10: fatal error: 'php.h' file not found
#include "php.h"
         ^
1 error generated.
make: *** [oci8.lo] Error 1
ERROR: `make' failed
4

1 回答 1

0

您需要编写即时客户端路径。

以上下载链接即时客户端:

https://www.oracle.com/br/database/technologies/instant-client/macos-intel-x86-downloads.html

于 2022-01-16T03:01:42.493 回答