【问题标题】:RVM 1.25.22 (stable) error on "rvm use"“rvm 使用”上的 RVM 1.25.22(稳定)错误
【发布时间】:2014-06-02 05:28:09
【问题描述】:

出现这样的错误:

MacRuby can only be installed on a Darwin OS.
macruby-0.12 is not installed.
To install do: 'rvm install macruby-0.12'

尝试时

rvm use

之后

\curl -sSL https://get.rvm.io | bash -s stable

在新鲜的 ubuntu 12.04 上。在我的家用电脑和一个 VPS 上。 如果我使用

rvm use 2.1.1

直接,例如,它可以,我可以使用RVM。仍然有时在编写脚本时会产生一些麻烦。并且写 rvm use... 每次我打开终端窗口都很烦人。 那是什么?不能谷歌任何与 macruby 和 ubuntu 相关的东西。 家用电脑是 ubuntu 12.04。据我所知,VPS 是 x86。 我尝试创建新用户并重新安装 ubuntu,但它仍然存在。

附:如果我这样做了

rvm install macruby-0.12

我遇到了这样的错误,当然

MacRuby can only be installed on a Darwin OS.
MacRuby can only be installed on a Darwin OS.
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/macruby-0.12.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
RVM does not have prediction for required space for macruby-0.12, assuming 150MB should be enough, let us know if it was not.
MacRuby can only be installed on a Darwin OS.

附言 我试过 /bin/bash --login 等 之前使用较旧的 RVM 的几个飞蛾(每次我收到关于 .rvmrc 已弃用的消息时)一切正常,但一旦我不得不升级......

【问题讨论】:

  • 好的,感谢您的快速响应,抱歉我的英语很差,无法说清楚。一步一步:1)安装新的 ubuntu 12.04 2)运行:\curl -sSL get.rvm.io | bash -s stable 3) 运行:rvm use 4) 查看有关 macruby 的错误信息。我不是 goona 安装 macruby。我想使用任何 ruby​​ 版本(例如,最新的 2.1.1)。我不知道有关 Darwin OS 的消息来自哪里以及为什么会看到 macruby 错误。我发布了最后一段代码,因为我试图运行在终端中使用的东西(我知道我无法在 Ubuntu 上安装 macruby)
  • 或者我做错了什么?例如,我不想运行“rvm use”来显示当前使用的 ruby​​ 版本和 gemset 名称。
  • 我在 Debian 上遇到同样的错误。

标签: ruby linux ubuntu rvm macruby


【解决方案1】:

检查正在使用的红宝石运行:

rvm current

至于rvm use,不过,你应该得到一个帮助屏幕,用法是:

rvm use ruby-version@gemset

其中大部分组件是可选的,但必须至少提供一个

【讨论】:

    【解决方案2】:

    我在使用多用户 rvm 时遇到了完全相同的问题。这对我有帮助:

    rvm implode#卸载整个rvm

    然后我安装了 rvm 1.25.27,问题就消失了。只是升级 rvm 并没有帮助。

    user@host:~$ rvm use
    Using /usr/local/rvm/gems/ruby-2.1.2
    

    【讨论】:

      猜你喜欢
      • 2013-04-16
      • 2014-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-30
      • 1970-01-01
      相关资源
      最近更新 更多