【发布时间】:2014-07-20 17:03:20
【问题描述】:
列出 ruby 版本
console:~$ rvm list
rvm rubies
ruby-2.0.0-p481 [ i686 ]
# => - current
# =* - current && default
# * - default
尝试使用特定版本的 ruby
console:~$ rvm use 2.0.0
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.
【问题讨论】:
-
你想做什么?
-
你用什么终端?每个终端应用程序的登录 shell 设置都不同。或者,您可以
source $HOME/.profile或source $HOME/.bash_profile其中 rvm 可能已经定义了它的 init 行。 -
您需要将控制台作为登录 shell 运行。你有什么系统?
-
终端 Gnome Ubuntu 12.04 lts
-
如果您想知道登录和非登录 shell 之间的区别:unix.stackexchange.com/questions/38175/…