如何在Linux(Ubuntu)上更新ruby? [英] How to update ruby on linux (ubuntu)?
本文介绍了如何在Linux(Ubuntu)上更新ruby?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ruby和linux上都是新手,所以我确定这是微不足道的,但我还不知道.我目前安装了ruby 1.8.7,我想将其更新为ruby 1.9.我该怎么办?
I'm newbie on both ruby and linux, so I'm sure this is trivial but I don't know yet. I currently have ruby 1.8.7 installed and I want to update it to ruby 1.9. How can I do that?
推荐答案
sudo apt-get install ruby1.9
应该可以解决问题.
您可以找到
apt-cache search <your search term>
所以我只是做了apt-cache search ruby | grep 9
来找到它.
So I just did apt-cache search ruby | grep 9
to find it.
您可能需要将新的Ruby调用为ruby1.9
,因为如果您键入ruby
,Ubuntu可能默认为1.8.
You'll probably need to invoke the new Ruby as ruby1.9
, because Ubuntu will probably default to 1.8 if you just type ruby
.
这篇关于如何在Linux(Ubuntu)上更新ruby?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文