GUIDE

The road ahead will be long and our climb will be steep

Install Ruby on Ubuntu

| Comments

  • 一些依赖包:
sudo apt-get install -y build-essential openssl libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libyaml libxml2 libxslt autoconf libc6-dev ncurses-dev automake libtool bison pkg-config git-core subversion

git-core和subversion可选

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -L get.rvm.io | bash -s stable
  • 为rvm命令配置快捷方式
source ~/.rvm/scripts/rvm
  • 安装ruby
rvm list known
rvm install 2.0.0
  • 如果服务器是在国内,可选择将gem源换为taobao域名
gem source -r https://rubygems.org/
gem source --add http://ruby.taobao.org/
gem source -l # 查看gems源

Comments