1. 下载
https://www.ruby-lang.org/en/
2. 安装
tar zxvf ruby-2.1.1.gz
cd ruby-2.1.1
./configure --prefix=/usr/local/ruby-2.1.1
make && make install
修改环境变量
vim ~/.bash_profile
修改追加 PATH=......:/usr/local/ruby-2.1.1/bin
执行是配置生效:. .bash_profile
3. 安装rails
/usr/local/ruby-2.1.1/bin/gem install rails
4. helloworld
# cd /data1/app/
# rails new helloworld
# yum install sqlite-devel
# cd helloworld && bundle install
#rails s
centos ruby 2.1.1安装配置,布布扣,bubuko.com
原文:http://www.cnblogs.com/the-moving-ear/p/3601180.html