原本以为就是安装一下,结果也是一波三折的。
安装过程详解,遇到的问题和解决方法。
Step 1 下载 Ruby。在官网下载页面可以看到有a.下载源码安装 b.一键安装。根据OS的类型我选在windows下的版本download Ruby 1.8.6 一步安装。下载完双击运行安装。
Step 2 下载WatiR。在官网下载了WatiR的最新版本1.5.6和版本1.5.4.,我下载的是gem后缀的安装文件。为什么还要下1.5.4后面再解释,这也就是安装一波三折的一个因素。
什么是gem?它到底是什么东西?在wiki上搜索了一下ruby的gems
RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a “gem”), a tool designed to easily manage the installation of gems, and a server for distributing them. RubyGems is [...]