如何使用 RVM 在 Mac OS 上安装 Ruby 2.4.0

How to install Ruby 2.4.0 on Mac OS using RVM

我无法安装 Ruby 2.4.0.

我正在尝试安装 Ruby 2.4.0 使用:

rvm install ruby-2.4.0

我收到以下错误:

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.4.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_brew.
Installing requirements for osx_brew.
Updating system...........
Error running 'requirements_osx_brew_update_system ruby-2.4.0',
showing last 15 lines of /Users/bbc-admin/.rvm/log/1492510247_ruby-2.4.0/update_system.log
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.

认为您可能需要更新 Homebrew;尝试 brew update,然后重试 rvm install ruby-2.4.0 命令。

我会把它添加为评论,但没有足够的代表。让我知道你是怎么办的。