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

时间:2017-04-18 10:17:51

标签: ruby macos rvm

我无法安装Ruby 2.4.0。

  • RVM版本为1.29.1
  • Rubygems版本是2.6.11

我正在尝试使用:

安装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 "$1" 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.

1 个答案:

答案 0 :(得分:5)

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

我会将此添加为评论但不足以代表。让我知道你是怎么办的。