install ruby rails and .....
url:http://ruby-china.org/wiki/install_ruby_guide
1.安装必须工作包
yum install install -y build-essential openssl curl libcurl3-dev libreadline6 libreadline6-dev git zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev libsqlite3-dev
bash版本保证在3.2以上 yum update bash
2.安装RVM
2.1 curl -L get.rvm.io|bash -s stable
2.2 modify ~/.bashrc:$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.' >> ~/.bashrc
2.3 source ~/.bashrc
2.4 check :rvm -v
3.用RVM安装ruby环境
sed -i 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' /usr/local/rvm/config/db
rvm pkg install readline
rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
rvm 1.9.3 --default #设定默认ruby版本
rvm -v #查看ruby版本
gem -v #查看gem版本
gem source -r https://rubygems.org/ #删除gem源
gem source -a http://ruby.taobao.org #添加gem源
4.安装 Rails 环境
gem install bundler rails
bundle -v
rails -v
url:http://ruby-china.org/wiki/install_ruby_guide
1.安装必须工作包
yum install install -y build-essential openssl curl libcurl3-dev libreadline6 libreadline6-dev git zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev libsqlite3-dev
bash版本保证在3.2以上 yum update bash
2.安装RVM
2.1 curl -L get.rvm.io|bash -s stable
2.2 modify ~/.bashrc:$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.' >> ~/.bashrc
2.3 source ~/.bashrc
2.4 check :rvm -v
3.用RVM安装ruby环境
sed -i 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' /usr/local/rvm/config/db
rvm pkg install readline
rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
rvm 1.9.3 --default #设定默认ruby版本
rvm -v #查看ruby版本
gem -v #查看gem版本
gem source -r https://rubygems.org/ #删除gem源
gem source -a http://ruby.taobao.org #添加gem源
4.安装 Rails 环境
gem install bundler rails
bundle -v
rails -v