如何从失败的Ruby版本更新中恢复?

时间:2014-11-28 15:37:30

标签: ruby

在尝试更新Ruby版本时,我遇到了一些依赖项失败。其输出复制如下。我需要纠正这种情况或执行时间机器恢复(理想情况下不会回滚我的整个系统)。

从这种情况中恢复的最佳方法是什么?

Pauls-MacBook-Pro:~ pauldriver$ cd Sites/base/sites/all/themes/primal/
ruby-1.9.3-p551 is not installed.
To install do: 'rvm install ruby-1.9.3-p551'
Pauls-MacBook-Pro:primal pauldriver$ rvm list

rvm rubies

=* ruby-1.9.3-p547 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Pauls-MacBook-Pro:primal pauldriver$ rvm install ruby-1.9.3-p551
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on         binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required packages: gcc48.....
Error running 'requirements_osx_brew_libs_install gcc48',
showing last 15 lines of /Users/pauldriver/.rvm/log/1417181615_ruby-1.9.3-        p551/package_install_gcc48.log
++ case "$1" in
++ [[ -t 1 ]]
++ return 1
++ printf %b 'There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.
Pauls-MacBook-Pro:primal pauldriver$ 

1 个答案:

答案 0 :(得分:0)

似乎我的问题与gcc48有关,而且与早期版本有些混淆。

我最终通过以下stackoverflow帖子Error installing Ruby in Yosemite

找到了解决方案