ruby安装:
ruby:http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p247-x64.exe?direct
双击安装
文档:http://dl.bintray.com/oneclick/rubyinstaller/ruby-2.0.0-p247-doc-chm.7z?direct
解压缩即可
开发包:http://rubyforge.org/frs/download.php/76808/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
双击安装解压缩到一个目录,然后把bin目录加到环境变量PATH中
开发包安装看这个:https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
在开发包目录执行两个命令:run “ruby dk.rb init” and “ruby dk.rb install”
安装gems:
看淘宝镜像:http://ruby.taobao.org/
执行命令:
$ gem sources --remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***
http://ruby.taobao.org # 请确保只有 ruby.taobao.org
$ gem install rails
gem install rails
会报错
D:\rubydevkit>gem install rails
ERROR: Error installing rails:
The 'atomic' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
安装一下就可以了。
gem install rails命令执行成功后,输入rails会出现提示信息,说明安装成功。