【问题标题】:Updating rvm ruined my entire environment because I ran "get head" instead of "get stable"更新 rvm 破坏了我的整个环境,因为我运行的是“get head”而不是“get stable”
【发布时间】:2012-09-10 04:07:44
【问题描述】:

让我先提出这个问题,这是在 zsh 中发生的。

我将 rvm 更新到版本 1.15.8。我强制重新安装了我所有的红宝石。还将宝石恢复到原始状态。以下是我遇到的问题的列表:

# 1.8.7 no longer compiles because it

# Going to a project directory that contains a .rvmrc file now causes this:

__rvm_remove_from_path:11: failed to compile regex: invalid character range
__rvm_remove_from_path:11: failed to compile regex: invalid character range
__rvm_remove_from_path:11: failed to compile regex: invalid character range
__rvm_remove_from_path:11: failed to compile regex: invalid character range
__rvm_remove_from_path:11: failed to compile regex: invalid character range
__rvm_remove_from_path:11: failed to compile regex: invalid character range
... for thousands of lines with no end.

# Typing "rvm use 1.9.4-p194@mygemset" yields the same result as above.

# And my favorite: 

bundle install

Tells me I need to install gem bundler'

I do it.

bundle install

Still tells me I need to install gem bundler!

我希望我知道如何回到以前版本的 rvm。这是一个真正的问题,因为我有最后期限。通常我什至不升级 rvm 来避免这些环境问题,但我按照说明尝试让它与 Textmate 一起使用。

请有人帮忙。

回答后更新:

两件事。

1) 我运行的是“rvm get head”而不是“rvm get stable”。剪切和粘贴失败。

2) 我发现了 1.8.7 的问题。我跑了:

brew install tcl

和:

brew install tk

我还将 $HOME/.rvm 下所有内容的所有权更改为我所有。确保已安装 X11。然后跑:

rvm remove 1.8.7-p352

和:

rvm install 1.8.7-p352

工作就像一个魅力!

【问题讨论】:

    标签: rvm rvmrc


    【解决方案1】:

    我遇到了同样的问题。

    这应该安装以前的版本。

    rvm get 1.15.7
    

    这是github上的问题https://github.com/wayneeseguin/rvm/issues/1095

    【讨论】:

    • 这是另一个问题-但你是对的-使用稳定版本可以解决它,1.15.8也可以作为稳定版本,您可以使用rvm get stable检查它。
    猜你喜欢
    • 2012-10-10
    • 1970-01-01
    • 2019-02-02
    • 1970-01-01
    • 1970-01-01
    • 2021-04-29
    • 1970-01-01
    • 1970-01-01
    • 2018-10-16
    相关资源
    最近更新 更多