因为看到一个android测试很好用的工具 Dryrun , 想安装来试一试,结果在安装 ruby 的时候简直是困难重重啊!
首先是换一个国内可以使用的源的问题:
还有一个是devkit过时的问题:
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'
解决方法:
- 下载devkit,解压到某一个文件夹下
- 在文件夹目录下一次运行以下命令:
ruby dk.rb init
ruby dk.rb install
gem install rdiscount --platform=ruby
此时运行我们的 gem install dryrun
发现已经是可以的了!