执行 `brew tap exolnet/homebrew-deprecated` 时出错

Ruc*_*tel 4 homebrew php-7.1 apple-m1

我想在我的 macbook pro 上使用 macos m1 安装 php@7.1。我想执行以下步骤

brew tap exolnet/homebrew-deprecated
brew install php@7.1
Run Code Online (Sandbox Code Playgroud)

但是,我在命令上收到此错误brew tap exolnet/homebrew-deprecated

==> Tapping exolnet/deprecated
Cloning into '/opt/homebrew/Library/Taps/exolnet/homebrew-deprecated'...
remote: Enumerating objects: 98, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 98 (delta 0), reused 1 (delta 0), pack-reused 95
Receiving objects: 100% (98/98), 23.21 KiB | 127.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@5.6.rb
php@5.6: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@5.6.rb:10

Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.0.rb
php@7.0: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.0.rb:10

Error: Invalid formula: /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.1.rb
php@7.1: Calling `sha256 "digest" => :tag` in a bottle block is disabled! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.1.rb:10

Error: Cannot tap exolnet/deprecated: invalid syntax in tap!
Run Code Online (Sandbox Code Playgroud)

谁能建议我如何修复 tihs,或者我应该如何在 mac os m1 上安装 php 7.1?

Shi*_*hur 23

exolnet/homebrew-deprecated不再维护Tap ,因此出现错误。

安装时PHP 7.1,先将exolnet/deprecated水龙头拆开,然后就可以使用shivammathur/php我维护的、广泛使用的水龙头了。

按着这些次序。

HOMEBREW_DEVELOPER=1 brew untap exolnet/deprecated
Run Code Online (Sandbox Code Playgroud)
  • 轻敲shivammathur/php
brew tap shivammathur/php
Run Code Online (Sandbox Code Playgroud)
  • 安装并链接 PHP 7.1
brew install shivammathur/php/php@7.1
brew link --force --overwrite shivammathur/php/php@7.1
Run Code Online (Sandbox Code Playgroud)

文档: https: //github.com/shivammathur/homebrew-php