您的位置:軟件測試 > 開源軟件測試 > 開源功能測試工具 > Watir
ruby+watir環(huán)境配置
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時間:[ 2014/3/18 10:44:13 ] 推薦標(biāo)簽:環(huán)境配置 watir

1     安裝ruby1.9.3

2     查看gem –v

3     查看ruby –v

4     gem update --system

5     gem install water

會提示ERROR:  Error installing watir:
        The 'ffi' 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'

6解決方案

1、下載DevKit

   DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe

2、解壓DevKit

   解壓到C:DevKit

3、安裝并測試

     cd到解壓目錄下:

C:DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193

Initialization complete! Please review and modify the auto-ge
'config.yml' file to ensure it contains the root directories
of the installed Rubies you want enhanced by the DevKit.

C:DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby1
[INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'

C:DevKit>gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem ()
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
Installing ri documentation for rdiscount-1.6.8...
Installing RDoc documentation for rdiscount-1.6.8...

上一頁12下一頁
軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd