我尝试安装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发布于 2022-01-16 03:01:42
您需要编写即时客户端路径。
以上下载链接即时客户端:
https://www.oracle.com/br/database/technologies/instant-client/macos-intel-x86-downloads.html
https://stackoverflow.com/questions/21175406
复制相似问题