WATIR安装Server 2003失败 [英] Failed WATIR installation Server 2003

查看:153
本文介绍了WATIR安装Server 2003失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须重建我的盒子,而我目前无法安装Watir。 b
$ b

I had to rebuild my box and I currently am unable to install Watir.


gem install watir

错误:安装watir时出错:

activesupport需要Ruby版本> = 1.8.7。

gem install watir
ERROR: Error installing watir:
activesupport requires Ruby version >= 1.8.7.

如果Watir能够使用Ruby 1.8.7,那将会很好。我正在使用

Which would be fine if Watir was able to use Ruby 1.8.7 . I am using


ruby​​ -v

ruby​​ 1.8.6(2008-08-11 patchlevel 287)[i386 -mswin32]

gem -v

1.3.7

ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
gem -v
1.3.7

我不确定当开始发生这种情况时,但该网站上的文档是缺乏的。

I am not sure when this started to occur, but the documentation on the site is lacking.

推荐答案

在Windows XP(Professional,Version 2002,包3,完全路径)我已经安装了 ruby​​186-26.exe < a>来自 RubyForge ,如 watir.com/installation

On Windows XP (Professional, Version 2002, Service Pack 3, fully pathched) I have installed ruby186-26.exe from RubyForge, as suggested at watir.com/installation.

C:\>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

C:\>gem env
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
  - GEM PATH:
     - c:/ruby/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org

自动的RubyGems更新无效:

Automatic RubyGems update did not work:

C:\>gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

我已经下载 ruby​​gems-update-1.3.7.gem from RubyForge ,将它复制到我有命令提示符打开的文件夹(本例中为 C:\ )并安装:

I have downloaded rubygems-update-1.3.7.gem from RubyForge, copied it to the folder where I have command prompt open (C:\ in this example) and installed:

C:\>gem install rubygems-update-1.3.7.gem
Successfully installed rubygems-update, version 1.3.7
Installing ri documentation for rubygems-update-1.3.7...
Installing RDoc documentation for rubygems-update-1.3.7...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README

C:\>update_rubygems
RubyGems 1.3.7 installed
...

为了确保我有最新的RubyGems:

To make sure I have the latest RubyGems:

C:\>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
  - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: c:/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - c:/ruby/lib/ruby/gems/1.8
     - C:/Documents and Settings/Administrator/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

现在Watir不想安装:

Now Watir did not want to install:

C:\>gem install watir
ERROR:  Error installing watir:
        activesupport requires Ruby version >= 1.8.7.

我已将activesupport-2.3.8安装为 Charley Baker建议,我可以安装Watir:

I have installed activesupport-2.3.8 as suggested by Charley Baker, and I was able to install Watir:

C:\>gem install activesupport --version="2.3.8"
Successfully installed activesupport-2.3.8
1 gem installed
Installing ri documentation for activesupport-2.3.8...
Installing RDoc documentation for activesupport-2.3.8...

C:\>gem install watir
Successfully installed firewatir-1.6.5
Successfully installed nokogiri-1.4.3.1-x86-mswin32
Successfully installed watir-1.6.5
3 gems installed
...

这篇关于WATIR安装Server 2003失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆