rvm - 更新 rvm 破坏了我的整个环境,因为我运行的是 "get head"而不是 "get stable"

标签 rvm rvmrc

让我先介绍一下这个问题,这是在 zsh 中发生的。

我将 rvm 更新到 1.15.8 版。我对我所有的 ruby 进行了强制重新安装。还将 gem 恢复到原始状态。以下是我遇到的问题的列表:

# 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 一起工作。

有人请帮忙。

回答后更新:

2件事。

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 get 1.15.7

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

关于rvm - 更新 rvm 破坏了我的整个环境,因为我运行的是 "get head"而不是 "get stable",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12345217/

相关文章:

ruby - rvm 一直忽略我的 .rvmrc

rvm - 将 rvm 从 .rvmrc 转换为 .ruby-version 后未收到信息消息

Ruby Mine 提示 "Cannot switch SDK."即使 SDK 存在并且可用

ruby - 在用户的 .rvmrc 中设置 rvm 默认解释器?

ruby - 在 Ubuntu for Discourse 上安装 fast_xor Gem 时遇到问题

ruby - 使用 ansible playbook 更改 rvm ruby​​ 版本

ruby-on-rails - 带有 Bundler 的 rvm gemsets

ruby-on-rails - RVM 切换 Rails 版本

cryptography - 由于缺少公钥,使用 rvm 安装 ruby​​s 时出现问题