uninitialized constant Homebrew::Service

MacOS 14.5

Install apache for MacOS and failed with uninitialized constant Homebrew error.

error message:

s@SdeMacBook-Pro Downloads % brew services start httpd

Error: uninitialized constant Homebrew::Service

/opt/homebrew/Library/Homebrew/formulary.rb:396:in `block in load_formula_from_api'

/opt/homebrew/Library/Homebrew/formulary.rb:285:in `initialize'

/opt/homebrew/Library/Homebrew/formulary.rb:285:in `new'

/opt/homebrew/Library/Homebrew/formulary.rb:285:in `load_formula_from_api'

/opt/homebrew/Library/Homebrew/formulary.rb:969:in `load_from_api'

/opt/homebrew/Library/Homebrew/formulary.rb:962:in `klass'

/opt/homebrew/Library/Homebrew/formulary.rb:570:in `get_formula'

/opt/homebrew/Library/Homebrew/formulary.rb:1016:in `factory'

/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:113:in `services'

/opt/homebrew/Library/Homebrew/brew.rb:96:in `public_send'

/opt/homebrew/Library/Homebrew/brew.rb:96:in `<main>'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):

  https://github.com/homebrew/homebrew-services/issues/new

solution:

1. cd /opt/homebrew/Library/Taps/homebrew 

 2. rm -rf homebrew-services

3. brew tap homebrew/services

4. check updated files and services

5. brew services start httpd

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值