问题
I'm trying to install the MongoDB PHP driver for XAMPP on my OSX. When I run:
brew install php56-mongo
I get the following message: No available formula for php56-mongo
Any thoughts on how to fix this?
回答1:
$ brew tap homebrew/php
$ brew install php56-mongodb
回答2:
Recently they have deprecated the homebrew/php and archived homebrew/homebrew-php
You can follow this repo in order to install phpxx-extensions Let's say for php71-mongodb you can use this.
brew tap kyslik/php
brew install php71-mongodb
Bug Info: https://bugs.php.net/bug.php?id=76177
来源:https://stackoverflow.com/questions/30205687/brew-install-php56-mongo-command-not-working