sudo apt-get install curl git-core
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
curl -L https://get.rvm.io | bash -s stable --ruby
安装完成后, 配置启动环境,修改~/.bashrc 文件,加入
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
(有的话就不用 添加),在新的终端里就能看到rvm是否已安装成功
source /home/username/.rvm/scripts/rvm 启动rvm
rvm -v
rvm list
rvm uninstall sth
rvm install sth
gem list
gem install
gem uninstall