ubuntu 15.04安装beef,安装ruby-rvm
sudo apt-get update sudo apt-get install curl git curl -sSL https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable #或curl -L get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm rvm install 2.1.5 rvm use 2.1.5 -- default gem install bundler |
说明下, 如果用root帐户操作, 默认会將 rvm 装到 /usr/local/rvm 下. 其它帐号则在 ~/ 目录下.
设置ruby 源
$ gem sources --remove https://rubygems.org/ $ gem sources -a https://ruby.taobao.org/ $ gem sources -l *** CURRENT SOURCES *** https://ruby.taobao.org # 请确保只有 ruby.taobao.org $ gem install rails |
参考:
http://www.beefproject.com/
http://ruby.taobao.org/
https://github.com/beefproject/beef
http://rvm.io/