【发布时间】:2020-04-08 12:25:26
【问题描述】:
我参考了谷歌的一些教程,但它们不起作用,我猜那些方法已经过时了。
例如https://developerjack.com/blog/2016/installing-php71-with-homebrew/
运行“brew install php@7.1”时出现错误
macOS Catalina 10.15.4
executed
brew install
brew tap
caskroom/cask
homebrew/bundle
homebrew/cask
homebrew/core
homebrew/services
mongodb/brew
brew -v
Homebrew 2.2.12
Homebrew/homebrew-core (git revision 53ccd; last commit 2020-04-08)
Homebrew/homebrew-cask (git revision 322a2; last commit 2020-04-08)
brew install php@7.1
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
Error: No available formula with the name "php@7.1"
==> 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.
【问题讨论】: