Homebrew 被错误阻止:公式“homebrew/php/php70”的属性无效:版本 (nil)

Homebrew 被错误阻止:公式“homebrew/php/php70”的属性无效:版本 (nil)

我已经尝试brew updatebrew doctor修复了迄今为止出现的所有错误,但每次我尝试更新或删除 php70 时仍然会出现此错误:

Error: invalid attribute for formula 'homebrew/php/php70': version (nil) /usr/local/Homebrew/Library/Homebrew/formula.rb:252:in `validate_attributes!' /usr/local/Homebrew/Library/Homebrew/formula.rb:199:in `initialize' /usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `new' /usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `get_formula' /usr/local/Homebrew/Library/Homebrew/formulary.rb:275:in `factory' /usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:69:in `block in resolved_formulae' /usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:54:in `map' /usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:54:in `resolved_formulae' /usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb:13:in `reinstall' /usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'

我甚至尝试按照这里指定的方式重建(如何通过 Homebrew 从 master 构建 php70-xdebug?),但它返回相同的错误。有人知道接下来该怎么做吗?

相关内容