Unable to install Ruby on Mac with Homebrew

Viewed 2005

I am trying to install ruby 3.0 with Homebrew.

brew install ruby

But I am getting an error

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.

When I try 'brew search ruby', I get this:

==> 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

I tried uninstalling homebrew and reinstalling it and also used brew cleanup. Nothing worked. Also, my MacOS version is 11.2.3 (20D91) MacOS Big Sur.

0 Answers
Related