标签:ruby on rails 安装 ubuntu 配置
本文将在ubuntu上通过rvm来安装ruby和rails,步骤借鉴了官网和网上资料,在这里分享给大家。
1. 安装mapapis公钥:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
2. 安装curl
sudo apt-get install curl
\curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm rubygems current
$ gem sources --remove https://rubygems.org/ $ gem sources -a https://ruby.taobao.org/ $ gem sources -l *** CURRENT SOURCES *** https://ruby.taobao.org # 请确保只有 ruby.taobao.org $ gem install rails
gem install rails
标签:ruby on rails 安装 ubuntu 配置
原文地址:http://blog.csdn.net/zhaoxy_thu/article/details/44305821