简体   繁体   English

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

[英]why can I not install php mongodb driver on mac?

Here is what I do: 这是我做的:

1) I install driver in command: 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) I make source code manually download code and unzip it 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.

Package https://pecl.php.net/package/mongo has been superseded by https://pecl.php.net/package/mongodb . https://pecl.php.net/package/mongo已被https://pecl.php.net/package/mongodb取代。 Install it as 安装为

sudo pecl install mongodb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM