我正试图使用Homebrew安装Ruby 3.0。
brew install ruby
但是我遇到了一个错误
Error: No available formula or cask with the name "ruby".
==> 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 ruby”时,会出现以下结果:
==> Formulae
homebrew/portable-ruby/portable-libyaml
homebrew/portable-ruby/portable-ncurses
homebrew/portable-ruby/portable-openssl
homebrew/portable-ruby/portable-readline
homebrew/portable-ruby/portable-ruby
homebrew/portable-ruby/portable-zlib
==> Casks
rubymine rubymotion
我尝试了卸载Homebrew并重新安装它,还使用了 brew cleanup
。但是没有效果。
此外,我的 MacOS 版本为 11.2.3 (20D91) MacOS Big Sur。
brew search ruby
返回什么? - Fravadonarbenv
,它可以使用Homebrew进行安装:brew install rbenv
。 - tadmanbrew install rbenv
时,我遇到了相同的“未找到公式”错误。 - Supreme1707brew
工具出了问题。可以运行brew doctor
命令进行诊断,或者直接重新安装该工具。 - tadman