n00b here, but it looks like I have 4 versions of Ruby. How do I delete the ones I don't want and how do I keep the most up to date one? Also, shouldn't both of these commands have the same output?
n00b在这里,但看起来我有4个版本的Ruby。如何删除我不想要的那些以及如何保持最新的?此外,这两个命令不应该具有相同的输出吗?
eamon@ubuntu:~$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
eamon@ubuntu:~$ rvm all do ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]
2 个解决方案
#1
2
ruby -v
shows the current version that you're using. And rvm
is the Ruby Version Manager and allows you to change your environment easily. so the output is reasonable because you have installed 1.8.7, 2.0.0, 2.1.0 and 1.9.2 but currently you're using 1.8.7. For more information you should learn more about rvm.
ruby -v显示您正在使用的当前版本。 rvm是Ruby Version Manager,可让您轻松更改环境。所以输出是合理的,因为你已经安装了1.8.7,2.0.0,2.1.0和1.9.2,但目前你使用的是1.8.7。有关更多信息,您应该了解有关rvm的更多信息。
#1
2
ruby -v
shows the current version that you're using. And rvm
is the Ruby Version Manager and allows you to change your environment easily. so the output is reasonable because you have installed 1.8.7, 2.0.0, 2.1.0 and 1.9.2 but currently you're using 1.8.7. For more information you should learn more about rvm.
ruby -v显示您正在使用的当前版本。 rvm是Ruby Version Manager,可让您轻松更改环境。所以输出是合理的,因为你已经安装了1.8.7,2.0.0,2.1.0和1.9.2,但目前你使用的是1.8.7。有关更多信息,您应该了解有关rvm的更多信息。