安装watir gem install watir 出了好多错
例如:too many connection resets
SocketError: getaddrinfo:
Unable to resolve dependencies:
the installation aborts because of the network issue, but i don’t know why, the only thing i can do is that retry over and over again, it finally install successfully, below is my retry history
但有时好像又可以进行下去, 可能是由于网络的原因, 中途会失败,也不知道是为什么, 只能一次一次进重试,最终还是成功啦, 花了不少时间
C:\Users\guangjun>gem install watir
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/win32-a
-1.4.8-x86-mingw32.gem)
C:\Users\guangjun>gem install watir
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known. (http://rubygems.org/gem
win32-api-1.4.8-x86-mingw32.gem)
C:\Users\guangjun>gem system –update
ERROR: While executing gem … (RuntimeError)
Unknown command system
C:\Users\guangjun>gem update –system
Latest version currently installed. Aborting.
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
Fetching: windows-pr-1.2.0.gem (100%)Fetching: windows-pr-1.2.0.gem
Fetching: win32-process-0.6.5.gem (100%)
Fetching: xml-simple-1.0.15.gem (100%)
Fetching: hoe-2.9.4.gem ( 37%)ERROR: While executing gem … (Gem::RemoteFetc
r::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.9
.gem)
C:\Users\guangjun>irb
irb(main):001:0> require ‘rubygems’
=> false
irb(main):002:0> require ‘watir’
LoadError: cannot load such file — watir
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
n `require’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
n `require’
from (irb):2
from C:/Ruby193/bin/irb:12:in `<main>’
irb(main):003:0> require ‘rubygems’
=> false
irb(main):004:0> require ‘watir’
LoadError: cannot load such file — watir
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
n `require’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
n `require’
from (irb):4
from C:/Ruby193/bin/irb:12:in `<main>’
irb(main):005:0> exit
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
Fetching: win32-api-1.4.8-x86-mingw32.gem ( 29%)Fetching: win32-api-1.4.8-x86-
Fetching: win32-api-1.4.8-x86-mingw32.gem ( 84%)Fetching: win32-api-1.4.8-x86-
Fetching: win32-api-1.4.8-x86-mingw32.gem ( 24%)Fetching: win32-api-1.4.8-x86-
Fetching: win32-api-1.4.8-x86-mingw32.gem ( 20%)ERROR: While executing gem ..
(Gem::RemoteFetcher::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/win32-a
-1.4.8-x86-mingw32.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
Fetching: win32-api-1.4.8-x86-mingw32.gem (100%)
Fetching: windows-api-0.4.0.gem (100%)
Fetching: windows-pr-1.2.0.gem ( 22%)ERROR: While executing gem … (Gem::Rem
eFetcher::FetchError)
SocketError: getaddrinfo: No such host is known. (http://rubygems.org/gem
windows-pr-1.2.0.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.9
.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known. (http://rubygems.org/gem
hoe-2.9.4.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: No such host is known. (http://rubygems.org/gem
hoe-2.9.4.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
Fetching: hoe-2.9.4.gem ( 19%)ERROR: While executing gem … (Gem::RemoteFetc
r::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.9
.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
Fetching: hoe-2.9.4.gem ( 16%)ERROR: While executing gem … (Gem::RemoteFetc
r::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.9
.gem)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>gem install watir –no-ri –no-rdoc
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>gem install watir
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>gem install watir
ERROR: While executing gem … (Gem::DependencyError)
Unable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut
ation (~> 0.6.3)
C:\Users\guangjun>
C:\Users\guangjun>gem install commonwatir
Fetching: hoe-2.12.3.gem ( 27%)ERROR: While executing gem … (Gem::RemoteFet
er::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.1
3.gem)
C:\Users\guangjun>gem install commonwatir
Fetching: hoe-2.12.3.gem ( 21%)ERROR: While executing gem … (Gem::RemoteFet
er::FetchError)
too many connection resets (http://production.cf.rubygems.org/gems/hoe-2.1
3.gem)
C:\Users\guangjun>gem install commonwatir
Fetching: hoe-2.12.3.gem (100%)
Fetching: s4t-utils-1.0.4.gem (100%)
WARNING: s4t-utils-1.0.4 has an invalid nil value for @cert_chain
Fetching: builder-3.0.0.gem (100%)
Fetching: user-choices-1.1.6.1.gem (100%)
Fetching: commonwatir-2.0.4.gem (100%)
Successfully installed hoe-2.12.3
Successfully installed s4t-utils-1.0.4
Successfully installed builder-3.0.0
Successfully installed user-choices-1.1.6.1
Successfully installed commonwatir-2.0.4
5 gems installed
Installing ri documentation for hoe-2.12.3…
Installing ri documentation for s4t-utils-1.0.4…
Installing ri documentation for builder-3.0.0…
Installing ri documentation for user-choices-1.1.6.1…
Installing ri documentation for commonwatir-2.0.4…
Installing RDoc documentation for hoe-2.12.3…
Installing RDoc documentation for s4t-utils-1.0.4…
Installing RDoc documentation for builder-3.0.0…
Installing RDoc documentation for user-choices-1.1.6.1…
Installing RDoc documentation for commonwatir-2.0.4…
C:\Users\guangjun>gem install watir
Fetching: nokogiri-1.5.0-x86-mingw32.gem (100%)
Fetching: ffi-1.0.10-x86-mingw32.gem (100%)
Fetching: rautomation-0.6.3.gem (100%)
Successfully installed nokogiri-1.5.0-x86-mingw32
Successfully installed ffi-1.0.10-x86-mingw32
Successfully installed rautomation-0.6.3
Successfully installed watir-2.0.4
4 gems installed
Installing ri documentation for nokogiri-1.5.0-x86-mingw32…
unable to convert “\xE9″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for README.ja.rdoc, skipping
unable to convert “\xE8″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for CHANGELOG.rdoc, skipping
unable to convert “\xE5″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for CHANGELOG.ja.rdoc, skipping
unable to convert “\xE9″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for README.rdoc, skipping
unable to convert “\xE2″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for ext/nokogiri/xml_node_set.c, skipping
Installing ri documentation for ffi-1.0.10-x86-mingw32…
Installing ri documentation for rautomation-0.6.3…
Installing ri documentation for watir-2.0.4…
file ‘def_wrap=R,def_wrap_guard=R’ not found
Installing RDoc documentation for nokogiri-1.5.0-x86-mingw32…
unable to convert “\xE9″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for README.ja.rdoc, skipping
unable to convert “\xE8″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for CHANGELOG.rdoc, skipping
unable to convert “\xE5″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for CHANGELOG.ja.rdoc, skipping
unable to convert “\xE9″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for README.rdoc, skipping
unable to convert “\xE2″ to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB
for ext/nokogiri/xml_node_set.c, skipping
Installing RDoc documentation for ffi-1.0.10-x86-mingw32…
Installing RDoc documentation for rautomation-0.6.3…
Installing RDoc documentation for watir-2.0.4…
file ‘def_wrap=R,def_wrap_guard=R’ not found