MongoDB php extension install on ubuntu 12.04: fatal error: Zend/zend_string.h: No such file or directory
MongoDB php extension install on ubuntu 12.04: fatal error: Zend/zend_string.h: No such file or directory
我一直在尝试在 Ubuntu 12.04 上为 mongodb 安装 php 5.6 驱动程序。 (将在 Zend Framework 1.11 系统上使用它,是的,这是旧的,我完全知道)。
我已经尝试了一些东西,但没有任何效果。
看来我应该使用这个安装来让它工作:
http://php.net/manual/en/mongodb.installation.manual.php
但出于某种原因,在 make all -j 5 步骤中出现以下错误:
在 /var/mongotest/mongo-php-driver/src/bson.c:29:0 包含的文件中:
./phongo_compat.h:21:30: 致命错误: Zend/zend_string.h: 没有那个文件或目录
编译终止。
在 /var/mongotest/mongo-php-driver/src/bson-encode.c:29:0 包含的文件中:
./phongo_compat.h:21:30: 致命错误: Zend/zend_string.h: 没有那个文件或目录
只需安装php5.6-dev,它包含所有头文件。
我一直在尝试在 Ubuntu 12.04 上为 mongodb 安装 php 5.6 驱动程序。 (将在 Zend Framework 1.11 系统上使用它,是的,这是旧的,我完全知道)。
我已经尝试了一些东西,但没有任何效果。
看来我应该使用这个安装来让它工作: http://php.net/manual/en/mongodb.installation.manual.php
但出于某种原因,在 make all -j 5 步骤中出现以下错误:
在 /var/mongotest/mongo-php-driver/src/bson.c:29:0 包含的文件中: ./phongo_compat.h:21:30: 致命错误: Zend/zend_string.h: 没有那个文件或目录 编译终止。 在 /var/mongotest/mongo-php-driver/src/bson-encode.c:29:0 包含的文件中: ./phongo_compat.h:21:30: 致命错误: Zend/zend_string.h: 没有那个文件或目录
只需安装php5.6-dev,它包含所有头文件。