RVM 1.25.22(稳定)错误" rvm使用"

时间:2014-04-17 19:20:04

标签: ruby linux ubuntu rvm macruby

得到这样的错误:

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使用...每次打开终端窗口都很烦人。 那是什么?不能谷歌任何与macruby和ubuntu相关的东西。 家用电脑是ubuntu 12.04。据我记得,VPS是x86。 我试图建立新用户并重新安装ubuntu,但它仍然存在。

P.S。如果我做

rvm install macruby-0.12

我得到了这样的错误,cource

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.

P.S.S 我试过/ bin / bash --login等 在使用旧RVM之前的几只飞蛾(当我每次收到关于.rvmrc的消息时都弃用了)一切都好,但是一旦我不得不升级......

2 个答案:

答案 0 :(得分:0)

用于检查正在使用的ruby:

rvm current

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

rvm use ruby-version@gemset

其中大多数组件是可选的,但至少必须给出一个组件

答案 1 :(得分:0)

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

rvm implode#uninstall整个rvm

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

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