安装ruby
:http://rubyinstaller.org/downloads/
(比如Ruby 2.1.8-x64.exe
)
把bin
(比如C:\Ruby21-x64\bin
)加入环境变量PATH
安装 DevKit
: http://rubyinstaller.org/downloads/
解压到 C:\Ruby21-x64\DevKit
cd C:\Ruby21-x64\DevKit
ruby dk.rb init
编辑config.yml
:
---
- C:/Ruby21-x64
ruby dk.rb install
配置gem
gem sources --remove http