Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我不能在mac上安装php mongodb驱动程序?_Php_Macos_Mongodb_Driver - Fatal编程技术网

为什么我不能在mac上安装php mongodb驱动程序?

为什么我不能在mac上安装php mongodb驱动程序?,php,macos,mongodb,driver,Php,Macos,Mongodb,Driver,以下是我的工作: 1) 我在命令中安装驱动程序: $ sudo pecl install mongo Password: WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb" downloading mongo-1.6.12.tgz ... Starting to download mongo-1.6.12.tgz (209,252 bytes) .................................

以下是我的工作:

1) 我在命令中安装驱动程序:

$ sudo pecl install mongo
Password:
WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb"
downloading mongo-1.6.12.tgz ...
Starting to download mongo-1.6.12.tgz (209,252 bytes)
.............................................done: 209,252 bytes
118 source files, building
running: phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
Build with Cyrus SASL (MongoDB Enterprise Authentication) support? [no] : 
building in /private/tmp/pear/install/pear-build-rootTF9cNk/mongo-1.6.12
running: /private/tmp/pear/install/mongo/configure --with-php-config=/usr/bin/php-config --with-mongo-sasl=no
running: make
make: *** No targets specified and no makefile found.  Stop.
ERROR: `make' failed。
2) 我让源代码手动下载代码并解压缩

$ phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212

$ ./configure

$ make
make: *** No targets specified and no makefile found.  Stop.
软件包已被替换为。安装为

sudo pecl install mongodb

相同错误:正在运行:make:**未指定目标,也未找到makefile。停止错误:'make'失败Sudo pecl安装mongodb下载mongodb-1.1.2.tgz。。。开始下载mongodb-1.1.2.tgz…………完成:642582字节349源文件,构建运行:phpize配置用于:PHP Api版本:20121113构建于/private/tmp/pear/install/pear-build-rootpqxu7v/mongodb-1.1.2运行:/private/tmp/pear/install/mongodb/configure——使用PHP配置=/usr/bin/PHP配置运行:make make:**未指定目标,未找到make文件。停止错误:'make'失败。未创建明显的makefile。尝试增加详细程度以检查原因:
sudo pecl-v install mongodb
。您可以使用
-vvv
来获得更多的详细信息,但这将是大量的数据。