我正在尝试为oracle目的安装OCI8。我想通过PHP连接。我在命令下运行,通过终端
安装它sudo pecl install oci8
但是遇到这个问题
downloading oci8-1.4.10.tgz ...
Starting to download oci8-1.4.10.tgz (169,248 bytes)
.....................................done: 169,248 bytes
10 source files, building
running: phpize
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:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
答案 0 :(得分:0)
你需要有php标头来编译你安装的php的扩展名。
在我的Debian系统上,php5-dev
包中包含所需的文件:
apt-get install php5-dev
可以通过pecl安装扩展。您的机器将有类似的包装。
看起来你也缺少autoconf。 Debian软件包再次被称为autoconf
,您将找到适合您系统的类似软件包。