使用 RVM 安装后,Ruby 1.9.2 不断恢复到 1.8.7 [英] Ruby 1.9.2 keeps reverting back to 1.8.7 after installing it using RVM
本文介绍了使用 RVM 安装后,Ruby 1.9.2 不断恢复到 1.8.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装了 Ruby 1.9.2.我使用 rvm use 1.9.2
然后当我输入 ruby -v
它说 1.9.2.然后当我退出终端并重新打开它时,它再次显示 1.8.7.
I installed Ruby 1.9.2. I used rvm use 1.9.2
and then when I type ruby -v
it says 1.9.2. Then when I quit terminal and reopen it, it says 1.8.7 again.
我做错了什么?
推荐答案
您的默认 ruby 很可能未设置为 ruby 1.9.2.试试:
Your default ruby is most likely not set to ruby 1.9.2. Try:
rvm --default use 1.9.2
此外,如果您想查看安装的所有 ruby 版本,您可以运行rvm list".默认的 ruby 以 => 符号为前缀,如下所示.
Also if you want to see all ruby versions installed, you can run 'rvm list'. The default ruby is prefixed with a => symbol, as shown below.
$ rvm list
rvm rubies
ruby-1.9.1-p243 [ x86_64 ]
=> ruby-1.9.2-p136 [ x86_64 ]
ruby-1.9.2-p180 [ x86_64 ]
这篇关于使用 RVM 安装后,Ruby 1.9.2 不断恢复到 1.8.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文