在Brew,他们以某种方式将php移至Core https://github.com/Homebrew/homebrew-php/commit/ab5fffa7cf3b7dca77f2ffa6f6104fc09fd72221#diff-188d1e1be1dc7f3dea4ef64559d30f58
但是,现在缺少SNMP扩展 . 怎么安装呢?
http://formulae.brew.sh/formula/php71-snmp说公式被删除了
http://formulae.brew.sh/formula/php72-snmp对于php 7.2也是如此
2 回答
根据SMillerDev,此扩展现在编译为PHP .
如你所知,he also said:
但是现在hombebrew-core中没有公开的问题 .
如果有人像我一样苦苦挣扎并且仍然想使用Homebrew,这就是我所做的:它是解决方法,但至少在问题由Homebrew正确解决之前有效 .
叉https://github.com/Homebrew/homebrew-php/
Reset the fork's master branch to latest working commit 5c90bd4 并强制推送到GitHub上的远程主站
Untap Homebrew/homebrew-php
Tap your fork
之后当你运行
brew search php
时,你可以使用'll see all good ol' php版本和扩展 .或者你可以使用这个点击https://github.com/kabel/homebrew-php-ext作为我创建的问题的guy放在一起