首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ruby update with rvm错误消息(rvm要求失败)

ruby update with rvm错误消息(rvm要求失败)
EN

Stack Overflow用户
提问于 2014-06-23 00:52:27
回答 2查看 1.5K关注 0票数 0

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

代码语言:javascript
复制
 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。下面的命令行给出了一个完全不同的消息。

代码语言:javascript
复制
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:~ $ 

对不起,如果它很长,但我找不到答案。谢谢。

EN

回答 2

Stack Overflow用户

发布于 2014-06-23 05:59:15

下面的命令行给出了一个完全不同的消息。

以下是错误消息:

第一条错误消息:

无法更新Homebrew,请按照此处的说明进行操作:https://github.com/Homebrew/homebrew/wiki/Common-Issues并确保brew update正常工作,然后再继续。\n‘

第二条错误消息:

无法更新Homebrew,请按照此处的说明进行操作:https://github.com/Homebrew/homebrew/wiki/Common-Issues并确保brew update正常工作,然后再继续。\n‘

所以它看起来像是一个安装自制软件的问题。我认为访问给出的链接,阅读在更新自制软件时遇到的常见问题将是值得尝试的事情。

票数 2
EN

Stack Overflow用户

发布于 2014-08-26 06:26:24

我也有同样的问题,你有没有试着用sudo来运行它?

代码语言:javascript
复制
sudo rvm install ruby-2.1.2
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24353490

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档