我想安装rvm并遇到问题。这是我在ubuntu中运行的命令2.10我该怎么做?
root@jaskaran-Vostro-1550:/home/jaskaran# rvm install 2.1.0
The program 'rvm' is currently not installed. You can install it by typing:
apt-get install ruby-rvm
root@jaskaran-Vostro-1550:/home/jaskaran# apt-get install ruby-rvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ruby-rvm
答案 0 :(得分:2)
使用它代替安装RVM:
curl -sSL https://get.rvm.io | bash
您可以参考官方的 RVM 安装页面。
成功安装RVM后,请在当前shell中使用它:
source /etc/profile.d/rvm.sh
然后你可以安装你想要的Ruby版本:
rvm install 2.1.0
安装Ruby版本2.1.0。
答案 1 :(得分:1)
您可能希望首先清理您的环境,就像这篇文章告诉您:Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v