为什么我不能在mac上安装php mongodb驱动程序?
以下是我的工作: 1) 我在命令中安装驱动程序:为什么我不能在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) .................................
$ 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
来获得更多的详细信息,但这将是大量的数据。