使用rvm错误消息更新ruby(rvm要求失败)

时间:2014-06-22 16:52:27

标签: ruby rvm

我是ruby的新手,我正在尝试使用rvm更新到最新稳定版本的ruby。我收到以下错误消息:

 Searching for binary rubies, this might take some time.
    Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.2.tar.bz2
    Checking requirements for osx.
    Installing requirements for osx.
    Updating system......
    Error running 'requirements_osx_brew_update_system ruby-2.1.2',
    showing last 15 lines of /Users/...../.rvm/log/1403454982_ruby-2.1.2/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.
    unknown:~ $ 

据我所知,我已经安装了rvm和homebrew。以下命令行给出了完全不同的消息。

unknown:~ ...........$ \curl -sSL https://get.rvm.io | bash -s stable --ruby --auto-dotfiles
Turning on auto dotfiles mode.
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz

Upgrading the RVM installation in /Users/........./.rvm/
    Removing rvm PATH line from /Users/........./.profile /Users/........./.zshrc.
    Adding rvm PATH line to /Users/........./.profile /Users/........../.bashrc /Users/........./.zshrc.
touch: /Users/........../.bashrc: Permission denied
/Users/........./.rvm/src/rvm/scripts/functions/installer: line 1107: /Users/......../.bashrc: Permission denied
    Removing rvm loading line from /Users/......../.bash_profile /Users/......./.zlogin.
    Adding rvm loading line to /Users/......./.bash_profile /Users/......./.zlogin.
Upgrade of RVM in /Users/......../.rvm/ is complete.

# ,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  * No new notes to display.


rvm 1.25.27 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system......
Error running 'requirements_osx_brew_update_system ruby-2.1.2',
showing last 15 lines of /Users/........../.rvm/log/1403455327_ruby-2.1.2/update_system.log
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ /scripts/functions/logging : rvm_error()  115 > rvm_pretty_print stderr
++ /scripts/functions/logging : rvm_pretty_print()  73 > case "${rvm_pretty_print_flag:=auto}" in
++ /scripts/functions/logging : rvm_pretty_print()  78 > case "${TERM:-dumb}" in
++ /scripts/functions/logging : rvm_pretty_print()  81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print()  83 > [[ -t 2 ]]
++ /scripts/functions/logging : rvm_pretty_print()  83 > return 1
++ /scripts/functions/logging : rvm_error()  117 > 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.
++ /scripts/functions/requirements/osx_brew : requirements_osx_brew_update_system()  377 > return 1
Requirements installation failed with status: 1.
unknown:~ $ 

很抱歉,如果它很长但我无法在任何地方找到答案。感谢。

2 个答案:

答案 0 :(得分:2)

  

以下命令行给出了完全不同的消息。

以下是错误消息:

第一条错误消息:

  

无法更新Homebrew,请按照此处的说明操作:           https://github.com/Homebrew/homebrew/wiki/Common-Issues       并确保brew update在继续之前有效。\ n'

第二条错误消息:

  

无法更新Homebrew,请按照此处的说明操作:       https://github.com/Homebrew/homebrew/wiki/Common-Issues并确保brew update在继续之前有效。\ n'

所以看起来它是安装自制问题。我认为会转到给出的链接,并且阅读更新自制软件时遇到的常见问题将是值得尝试的。

答案 1 :(得分:1)

我遇到了同样的问题,您是否尝试使用sudo运行它?

sudo rvm install ruby-2.1.2