我正在尝试通过此命令通过pecl8安装oci8 :
sudo pecl install oci8
在安装过程中,我得到提示:
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,/Application/XAMPP/xamppfiles/lib/instantclient
但随后出现错误:
configure: error: failed to detect PHP version, please report
ERROR: /private/tmp/pear/temp/oci8/configure --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config --with-oci8=instantclient,/Application/XAMPP/xamppfiles/lib/instantclient' failed
其他信息:
php -v: PHP 7.0.9 (cli)
php-config --version: 7.0.9
which php: /Applications/XAMPP/xamppfiles/bin/php
pecl version: 1.10.1
which pecl: /Applications/XAMPP/xamppfiles/bin/pecl
Here is full log from my terminal 1
Here is full log from my terminal 2
我该如何解决这个问题?请帮助,谢谢。
已更新
我在这里找到了解决方案,它解决了我的问题
Head usage unknown option -1 / -n error. Possibly ruby related
我只是简单地键入命令而已
mv HEAD HTTP_HEAD