【问题标题】:installing php by homebrew shows "fatal: Could not resolve HEAD to a revision"?通过自制软件安装 php 显示“致命:无法将 HEAD 解析为修订版”?
【发布时间】:2021-10-06 00:35:48
【问题描述】:

我运行命令“brew install php”它通过错误

    fatal: Could not resolve HEAD to a revision
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
clock-signal               duplicate-file-finder      memory-cleaner
==> Updated Casks
Updated 166 casks.
==> Deleted Casks
adafruit-arduino                         blue-jeans-browser-plugin
adobe-lens-profile-creator               caramba-switcher
beautune

Warning: No available formula or cask with the name "php".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

请帮帮我

感谢你帮助我

【问题讨论】:

标签: php homebrew php-8


【解决方案1】:

您可以使用brew doctor 查看有关它的警告和错误。 就我而言,我通过删除 Taps dir 解决了这个问题

rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"

brew tap homebrew/core

然后尝试再次运行 brew install php@7.4 或您的版本

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 2021-04-16
    • 1970-01-01
    • 2015-01-11
    • 1970-01-01
    • 2020-09-02
    相关资源
    最近更新 更多