Ruby和RVM版本无法正确显示

时间:2014-04-13 17:29:28

标签: ruby linux rvm

当我从我的ubuntu 12.04终端运行ruby -v时,我得到了ruby 2.1.1p76(2014-02-24修订版45161)[i686-linux]。但是当我通过这个命令rvm use 2.1.1指定rvm来使用ruby 2.1.1时,我得到了这个输出 - > `

tamim@tamim-K43E:/media/Software/git/regexper$ rvm use ruby 2.1.1p76
ruby-2.0.0-p247 is not installed.
To install do: 'rvm install ruby-2.0.0-p247'

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

` 我是红宝石的新手,之前从未触摸它,只是用它来安装软件。

    tamim@tamim-K43E:/media/Software/git/regexper$ rvm -v
ruby-2.0.0-p247 is not installed.
To install do: 'rvm install ruby-2.0.0-p247'

rvm 1.25.22 (manual) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

gem版本:2.2.2

1 个答案:

答案 0 :(得分:0)

只有以下工作才有效:

rvm use ruby-2.1.1