脚本宝典收集整理的这篇文章主要介绍了缺少PHP包括(.h),脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
sudo pecl install mongodb
经过长时间的记录,我得到了这个
/tmp/pear/temp/mongodb/src/bson.c:29:17: Fatal error: PHP.h: No such file or directory #include <PHP.h> ^ compilation terminated. Makefile:338: recipe for target 'src/bson.lo' Failed make: *** [src/bson.lo] Error 1 ERROR: `make' Failed
我怎么能摆脱这个?
>操作系统:ubuntu 15.10
> PHP版本:5.6.10
> /usr/include没有PHP.h
> /usr/include / PHP5 / include没有文件
>我通过apt-get安装了PHP
>我已经安装并重新安装了PHP5-dev软件包
安装PCRE库(Perl 5兼容的正则表达式库):
# sudo apt-get update # sudo apt-get install libpcre3 libpcre3-dev
以上是脚本宝典为你收集整理的缺少PHP包括(.h)全部内容,希望文章能够帮你解决缺少PHP包括(.h)所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。