尝试通过 RVM 安装 Ruby 3.0.0 时出错

Error when trying to install Ruby 3.0.0 through RVM

我在尝试通过 RVM 升级 Ruby 时遇到这个无限循环:

Warning, new version of rvm available '1.29.12-next', you are using older version '1.29.3'.
You can disable this warning with:    echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable  auto-update  with:    echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.2/x86_64/ruby-3.0.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Error: Calling `brew search` with no arguments to output formulae is disabled! Use `brew formulae` instead.
Error: Calling `brew search` with no arguments to output formulae is disabled! Use `brew formulae` instead.
Error: Calling `brew search` with no arguments to output formulae is disabled! Use `brew formulae` instead.
Error: Calling `brew search` with no arguments to output formulae is disabled! Use `brew formulae` instead.
Error: Calling `brew search` with no arguments to output formulae is disabled! Use `brew formulae` instead.

还有其他方法可以实现吗?

尝试使用 运行 'brew upgrade ruby' 的自制软件。那应该将其升级到最新的 Ruby 版本。