无法安装oci8
问题描述:
我想为oracle目的安装OCI8。我想通过php连接。我运行以下命令,通过终端无法安装oci8
sudo来安装PECL安装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.
答
你需要有可用来编译扩展对PHP的头你安装了php。
在我的Debian系统将php5-dev
包包括所需的文件:
apt-get install php5-dev
将有可能通过PECL安装扩展。将有一个类似的包可用于您的机器。
看起来你还缺少autoconf。 Debian软件包再次被称为autoconf
,您会发现系统中有类似的软件包。