MacOs 10.15.1
Ruby 2.4.4
自制软件2.1.16
我现在尝试通过Homebrew启动任何服务时遇到问题。 任何尝试的输出如下:
$ brew services start postgresql@9.5
Error: undefined method `resolve_alias' for Formula:Class
/usr/local/bin/brew-services.rb:154:in `service'
/usr/local/bin/brew-services.rb:203:in `check'
/usr/local/bin/brew-services.rb:193:in `run!'
/usr/local/bin/brew-services.rb:397:in `<top (required)>'
/usr/local/Homebrew/Library/Homebrew/utils.rb:79:in `require'
/usr/local/Homebrew/Library/Homebrew/utils.rb:79:in `require?'
/usr/local/Homebrew/Library/Homebrew/brew.rb:108:in `<main>'
编辑11/27/19: Brew Doctor输出
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
php
答案 0 :(得分:0)
通过删除/usr/local/bin/brew-services.rb
解决了该错误。