在Max OS Lion上使用XAMPP安装MongoDb PHP驱动程序时出错 [英] Error installing MongoDb PHP driver with XAMPP on Max OS Lion
本文介绍了在Max OS Lion上使用XAMPP安装MongoDb PHP驱动程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试运行以下命令时收到此错误 sudo pecl安装mongo
I get this error when i try to run following command sudo pecl install mongo
错误:
...php_mongo.c:22:10: fatal error: 'php.h'
file not found
#include <php.h>
^
1 error generated.
make: *** [php_mongo.lo] Error 1
ERROR: `make' failed
我是MAC的新手,请帮助我解决这个问题,并让Mongo与PHP一起使用.
I am new to MAC, please help me to resolve this and get Mongo Working with PHP.
我已经安装了MacPorts和autoconf
I have installed MacPorts and autoconf
推荐答案
似乎您没有安装xampp开发人员软件包",而这是构建其他php扩展所必需的.您可以从以下位置下载开发人员软件包":
It seems, that you did not install the xampp "Developer Package", required to build additional php extension. You can download the "Developer Package" from:
http://www.apachefriends.org/en/xampp-macosx.html#849
这篇关于在Max OS Lion上使用XAMPP安装MongoDb PHP驱动程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文