Ubuntu上rvm + rails安装

lihaoningxia 2013-07-09

1.安装rvm

\curl -L https://get.rvm.io | bash -s stable

2.rvm安装依赖

rvm requirements

  

3.安装ruby/rails依赖

sudo apt-get update

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

4.安装ruby

rvm install 2.0.0
rvm use 2.0.0 --default

5.安装rails

gem resource -a http://ruby.taobao.org #添加淘宝作为gem源
gem resource -r https://rubygems.org/ #删除原有的rubygems源
gem resource -l  #确认源只剩taobao

gem install rails --debug # --debug可以看到反馈信息

相关推荐

AllenYoung / 0评论 2014-07-04
jizhename / 0评论 2013-09-03