Install rvm 1 2 3 $ curl -L get.rvm.io | bash -s stable $ source ~/.bashrc $ source ~/.bash_profile 修改 RVM 的 Ruby 安装源到淘宝 1 $ sed -i -e 's/ftp.ruby-lang.org/pub/ruby/ruby.taobao.org/mirrors/ruby/g' ~/.rvm/config/db Install ruby 1.9.3 1 rvm install 1.9.3 使用 ruby 1.9.3 1 rvm use 1.9.3 设置默认ruby 1 rvm use 1.9.3 --default 参考至:RubyChina 原文地址: http://vblog.vell001.ml/2014/03/24/install-ruby.html written by VellBibi posted at http://vblog.vell001.ml