在 OSX 上将 IMAP 添加到 PHP 7.2
我在OS X El Capitan上使用PHP 7.2,当然是使用Homebrew安装的。现在我想使用PHP的IMAP扩展中的一些IMAP函数,但无论我搜索什么,我都找不到在OSX上添加扩展的方法。
我尝试过的一些事情...当然,我尝试了最常用的推荐方法:
$ brew reinstall php --with-imap
然而,这失败了,返回:
Warning: php: this formula has no --with-imap option so it will be ignored!
我发现顺便提到的另一种方法也失败了:
$ brew install php72-imap
Error: No available formula with the name "php72-imap"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
我不完全确定该朝哪个方向发展。我相信有一种简单的,可能是有文档记录的方法可以做到这一点,但我还没有找到它。也许我只是在错误的地方寻找并使用错误的搜索词......