brew install php56-mongo Command Not working

若如初见. 提交于 2019-12-21 22:35:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!