【发布时间】:2020-09-10 21:44:53
【问题描述】:
当我运行brew install php@7.4 时,出现以下错误。
Error: php@7.4: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/php@7.4:1: syntax error, unexpected ..
../Formula/php.rb
^~
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Aliases/php@7.4:1: unknown regexp options - php
ALT01979:Homebrew hc641j$
brew install php@7.4.10
在下面给出这个错误。
Error: No available formula with the name "php@7.4.10"
==> 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.
当我尝试安装 php 时它可以工作,但我需要专门安装 7.4。
【问题讨论】:
-
试试这个stitcher.io/blog/php-74-upgrade-macbrew update brew upgrade php