【问题标题】:Can't install php using homebrew (MacOs)无法使用自制软件安装 php (MacOs)
【发布时间】:2021-09-26 13:22:13
【问题描述】:

我尝试使用自制软件 (https://formulae.brew.sh/formula/php) 在 MacOs 上安装 php,但每次我收到以下错误:

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.

而在使用brew search php的时候只能找到phpstorm和eclipse-php。 为什么我无法使用自制软件在 MacO 上找到或安装 php? 提前致谢!

旁注:我已经将自制软件更新到最新版本并检查了 github 上的公式,最后一次提交是 6 天前 https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb

【问题讨论】:

标签: php macos homebrew


【解决方案1】:

https://githubmemory.com/repo/Homebrew/homebrew-core/issues/77629 发布答案,以防它被删除/删除。

原海报所有应得的学分。 :)

rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core
brew update

【讨论】:

    猜你喜欢
    • 2017-03-07
    • 2021-05-05
    • 1970-01-01
    • 2017-06-06
    • 2020-09-02
    • 2019-09-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多