Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用RVM在Mac OS上安装Ruby 2.4.0_Ruby_Macos_Rvm - Fatal编程技术网

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

如何使用RVM在Mac OS上安装Ruby 2.4.0,ruby,macos,rvm,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 compilatio

我无法安装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.

认为您可能需要更新自制软件;请尝试
brew update
,然后重新尝试
rvm install ruby-2.4.0
命令


我本来会加上这句话作为评论的,但不够多。让我知道你进展如何

试过这个。。出现此错误:
错误:您对以下文件的本地更改将被合并覆盖:Library/Formula/libimobiledevice.rb请在合并之前提交或隐藏更改。中止错误:执行时失败:git pull-q origin refs/heads/master:refs/remotes/origin/master
检查此项。这可能会解决您的问题。就您的错误而言,您需要运行
git stash
,然后运行
brew update
,以便不覆盖任何文件