无法在mac os 10.9上安装mongodb php驱动程序

无法在mac os 10.9上安装mongodb php驱动程序,php,macos,mongodb,Php,Macos,Mongodb,在谷歌搜索了大约一个小时后,我找不到任何适合我的解决方案。我在OSX10.9小牛上 以下是终端所说的: $ sudo pecl install mongo downloading mongo-1.4.4.tgz ... Starting to download mongo-1.4.4.tgz (141,242 bytes) ..............................done: 141,242 bytes 84 source files, building running: p

在谷歌搜索了大约一个小时后,我找不到任何适合我的解决方案。我在OSX10.9小牛上

以下是终端所说的:

$ sudo pecl install mongo

downloading mongo-1.4.4.tgz ...
Starting to download mongo-1.4.4.tgz (141,242 bytes)
..............................done: 141,242 bytes
84 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:
building in /private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4
running: /private/tmp/pear/install/mongo/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking target system type... i386-apple-darwin13.0.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable Mongo extension... yes, shared
checking whether byte ordering is bigendian... no
checking whether to compile for recent osx architectures... yes
checking whether to include code coverage symbols... no
checking Build with PHP streams support... yes
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/libtool --mode=compile cc -I./util -I. -I/private/tmp/pear/install/mongo -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/include -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/main -I/private/tmp/pear/install/mongo -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/util -I/private/tmp/pear/install/mongo/util -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/exceptions -I/private/tmp/pear/install/mongo/exceptions -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/gridfs -I/private/tmp/pear/install/mongo/gridfs -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/types -I/private/tmp/pear/install/mongo/types -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/mcon -I/private/tmp/pear/install/mongo/mcon  -
DHAVE_CONFIG_H  -g -O2 -arch i386 -arch x86_64 -mmacosx-version-min=10.5   -c /private/tmp/pear/install/mongo/php_mongo.c -o php_mongo.lo
mkdir .libs
 cc -I./util -I. -I/private/tmp/pear/install/mongo -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/include -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/main -I/private/tmp/pear/install/mongo -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/util -I/private/tmp/pear/install/mongo/util -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/exceptions -I/private/tmp/pear/install/mongo/exceptions -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/gridfs -I/private/tmp/pear/install/mongo/gridfs -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/types -I/private/tmp/pear/install/mongo/types -I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/mcon -I/private/tmp/pear/install/mongo/mcon -DHAVE_CONFIG_H -g -O2 -arch i386 -arch x86_64 -mmacosx-version-min=10.5 -c /private/tmp/pea
r/install/mongo/php_mongo.c  -fno-common -DPIC -o .libs/php_mongo.o
/private/tmp/pear/install/mongo/php_mongo.c:16:10: fatal error: 'php.h' file not found
#include <php.h>
         ^
1 error generated.
make: *** [php_mongo.lo] Error 1
ERROR: `make' failed
$sudo pecl安装mongo
正在下载mongo-1.4.4.tgz。。。
开始下载mongo-1.4.4.tgz(141242字节)
完成:141242字节
84源文件,建筑
跑步:phpize
grep:/usr/include/php/main/php.h:没有这样的文件或目录
grep:/usr/include/php/Zend/Zend_modules.h:没有这样的文件或目录
grep:/usr/include/php/Zend/Zend_extensions.h:没有这样的文件或目录
配置用于:
PHP Api版本:
Zend模块Api编号:
Zend扩展Api编号:
内置/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4
正在运行:/private/tmp/pear/install/mongo/configure
正在检查处理长线和-e的grep/usr/bin/grep
正在检查白鹭/usr/bin/grep-E
正在检查不截断输出的sed/usr/bin/sed
正在检查抄送。。。复写的副本
正在检查C编译器是否工作。。。对
正在检查C编译器的默认输出文件名。。。a、 出去
正在检查可执行文件的后缀。。。
正在检查我们是否正在交叉编译。。。不
正在检查对象文件的后缀。。。o
正在检查我们是否正在使用GNU C编译器。。。对
正在检查cc是否接受-g。。。对
正在检查cc选项以接受ISO C89。。。不需要
正在检查如何运行C预处理器。。。cc-E
正在检查icc。。。不
正在检查suncc。。。不
正在检查cc是否同时理解-c和-o。。。对
正在检查系统库目录。。。解放党
正在检查编译器是否支持-R。。。不
正在检查编译器是否支持-Wl,-rpath,。。。对
正在检查生成系统类型。。。i386-apple-darwin13.0.0
正在检查主机系统类型。。。i386-apple-darwin13.0.0
正在检查目标系统类型。。。i386-apple-darwin13.0.0
正在检查PHP前缀/usr
检查PHP包括-I/usr/include/php-I/usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib
正在检查PHP扩展目录/usr/lib/php/extensions/no-debug-non-zts-20100525
正在检查PHP安装的标头前缀/usr/include/php
正在检查是否已启用调试。。。不
正在检查zts是否已启用。。。不
正在检查re2c。。。不
配置:警告:如果要重新生成PHP解析器,需要re2c 0.13.4或更高版本。
正在检查是否有呆滞。。。不
正在检查nawk。。。不
正在检查awk。。。awk
正在检查awk是否已损坏。。。不
正在检查是否启用Mongo扩展。。。是的,共享
正在检查字节顺序是否为bigendian。。。不
正在检查是否编译最新的osx体系结构。。。对
正在检查是否包含代码覆盖率符号。。。不
正在检查PHP流支持的构建。。。对
正在检查cc使用的ld/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
正在检查链接器(/Applications/Xcode.app/Contents/Developer/toolschains/xcodefault.xctoolschain/usr/bin/ld)是否为GNU ld。。。不
正在检查/Applications/Xcode.app/Contents/Developer/toolschains/xcodefault.xctoolschain/usr/bin/ld选项以重新加载对象文件-R
正在检查BSD兼容的nm/usr/bin/nm
正在检查ln-s是否工作。。。对
正在检查如何识别依赖库。。。通关
正在检查ANSI C头文件。。。对
正在检查sys/types.h。。。对
正在检查sys/stat.h。。。对
正在检查stdlib.h。。。对
正在检查字符串。h。。。对
正在检查内存。h。。。对
正在检查字符串。h。。。对
正在检查IntType.h。。。对
正在检查stdint.h。。。对
正在检查unistd.h。。。对
正在检查dlfcn.h可用性。。。对
正在检查dlfcn.h是否存在。。。对
正在检查dlfcn.h。。。对
正在检查命令行参数的最大长度。。。196608
正在检查从cc对象解析/usr/bin/nm输出的命令。。。好啊
正在检查objdir。自由基
正在检查ar。。。应收账
正在检查ranlib。。。兰利布
正在检查带。。。带
正在检查dsymutil。。。dsymutil
正在检查nEdit。。。n编辑
正在检查-单_模块链接器标志。。。对
正在检查-导出的\u符号\u列表链接器标志。。。对
正在检查cc是否支持-fno rtti-fno异常。。。对
正在检查cc选项以生成图片-fno普通
正在检查cc PIC标志-fno是否正常工作。。。对
正在检查cc静态标志-静态工作。。。不
正在检查cc是否支持-c-o file.o。。。对
正在检查cc链接器(/Applications/Xcode.app/Contents/Developer/toolschains/xcodefault.xctoolschain/usr/bin/ld)是否支持共享库。。。对
正在检查动态链接器特性。。。达尔文13.0.0动态
正在检查如何将库路径硬编码到程序中。。。立即的
正在检查是否可以剥离库。。。对
正在检查libtool是否支持共享库。。。对
正在检查是否生成共享库。。。对
正在检查是否生成静态库。。。不
创建libtool
将配置标记“CXX”附加到libtool
配置:创建./config.status
config.status:正在创建config.h
跑步:制造
/bin/sh/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/libtool--mode=compile cc-I./util-I-I/private/tmp/pear/install/mongo-DPHP_ATOM_INC-I/private/tmp/pear/install/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/include-I/private/pear-build-rootDzh2iw/mongo/1.4.4/usr-I/usr/include/php/main-I/usr/include/php/Zend-I/usr/include/php/ext-I/usr/include/php/ext/date/lib-I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/util-I/private/tmp/pear/install/mongo/util-I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/exceptions-I/private/tmp/pear/install/mongo/exceptions-I/private/tmp/pear/install/pear-build-rootDzh2iw/mongo-1.4.4/gridfs-I/private/tmp/pear/install/mongo/gridfs-I/private/tmp/pear/install/mongo/install/pear-build-rootDzh2iw/mongo-1.4.4/types-I/private/tmp/pear/pear/mongo/mogo/typer-4.4/mcon-I/private/tmp/pear/install/mongo/m
xcode-select --install
cd /usr/include
sudo ln -sf /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/php
$ brew tap homebrew/php
$ brew install php56-mongodb