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. 安装nodejs && sqlite-devel
http://nodejs.org/download/
tar zxvf nodejs-0.10.26-linux-x86.gz
./configure --prefix=/usr/local/nodejs
make -j2 && make install
配置path
#vim /etc/profile
#PATH追加/usr/local/nodejs/bin
#source /etc/profile //刷新配置
# yum install sqlite-devel
5. helloworld
# cd /data1/app/
# rails new helloworld
# cd helloworld && bundle install
#rails s