CentOS

1
2
3
4
sudo yum install ruby
sudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
sudo yum install ruby-rdoc ruby-devel
sudo yum install rubygems

参考链接: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-centos-6

1
2
3
## 设置淘宝的RubyGems镜像源
gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
gem sources -l

参考链接 https://ruby.taobao.org/