简体   繁体   中英

MongoDB php extension install on ubuntu 12.04: fatal error: Zend/zend_string.h: No such file or directory

I've been trying to install a php 5.6 driver for mongodb on Ubuntu 12.04. (Will be using this on a Zend Framework 1.11 system, yes this is old, I am fully aware).

I've tried a few things, nothing works.

It seems I should get it to work using this installation: http://php.net/manual/en/mongodb.installation.manual.php

But for some reason at the make all -j 5 step I get the following error:

In file included from /var/mongotest/mongo-php-driver/src/bson.c:29:0: ./phongo_compat.h:21:30: fatal error: Zend/zend_string.h: No such file or directory compilation terminated. In file included from /var/mongotest/mongo-php-driver/src/bson-encode.c:29:0: ./phongo_compat.h:21:30: fatal error: Zend/zend_string.h: No such file or directory

只需安装php5.6-dev,它包括所有头文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM