{"id":299,"date":"2011-11-05T14:33:34","date_gmt":"2011-11-05T06:33:34","guid":{"rendered":"http:\/\/www.genepeng.com\/?p=299"},"modified":"2011-11-05T14:34:34","modified_gmt":"2011-11-05T06:34:34","slug":"%e5%ae%89%e8%a3%85watir-gem-install-watir-%e5%87%ba%e4%ba%86%e5%a5%bd%e5%a4%9a%e9%94%99","status":"publish","type":"post","link":"https:\/\/www.genepeng.com\/index.php\/299","title":{"rendered":"\u5b89\u88c5watir   gem install watir \u51fa\u4e86\u597d\u591a\u9519"},"content":{"rendered":"<p>\u5b89\u88c5watir\u00a0\u00a0 gem install watir \u51fa\u4e86\u597d\u591a\u9519<\/p>\n<p>\u4f8b\u5982\uff1atoo many connection resets<\/p>\n<p>SocketError: getaddrinfo:<\/p>\n<p>Unable to resolve dependencies:<\/p>\n<p>the installation aborts because of the network issue, but i don&#8217;t know why, the only thing i can do is that retry over and over again, it finally install successfully,\u00a0 below is my retry history<\/p>\n<p>\u4f46\u6709\u65f6\u597d\u50cf\u53c8\u53ef\u4ee5\u8fdb\u884c\u4e0b\u53bb\uff0c \u53ef\u80fd\u662f\u7531\u4e8e\u7f51\u7edc\u7684\u539f\u56e0\uff0c \u4e2d\u9014\u4f1a\u5931\u8d25\uff0c\u4e5f\u4e0d\u77e5\u9053\u662f\u4e3a\u4ec0\u4e48\uff0c \u53ea\u80fd\u4e00\u6b21\u4e00\u6b21\u8fdb\u91cd\u8bd5\uff0c\u6700\u7ec8\u8fd8\u662f\u6210\u529f\u5566\uff0c \u82b1\u4e86\u4e0d\u5c11\u65f6\u95f4<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetcher::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/win32-a<br \/>\n-1.4.8-x86-mingw32.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetcher::FetchError)<br \/>\nSocketError: getaddrinfo: No such host is known.\u00a0 (http:\/\/rubygems.org\/gem<br \/>\nwin32-api-1.4.8-x86-mingw32.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem system &#8211;update<br \/>\nERROR:\u00a0 While executing gem &#8230; (RuntimeError)<br \/>\nUnknown command system<\/p>\n<p>C:\\Users\\guangjun&gt;gem update &#8211;system<br \/>\nLatest version currently installed. Aborting.<br \/>\nC:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nFetching: windows-pr-1.2.0.gem (100%)Fetching: windows-pr-1.2.0.gem<br \/>\nFetching: win32-process-0.6.5.gem (100%)<br \/>\nFetching: xml-simple-1.0.15.gem (100%)<br \/>\nFetching: hoe-2.9.4.gem ( 37%)ERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetc<br \/>\nr::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.9<br \/>\n.gem)<!--more--><\/p>\n<p>C:\\Users\\guangjun&gt;irb<br \/>\nirb(main):001:0&gt; require &#8216;rubygems&#8217;<br \/>\n=&gt; false<br \/>\nirb(main):002:0&gt; require &#8216;watir&#8217;<br \/>\nLoadError: cannot load such file &#8212; watir<br \/>\nfrom C:\/Ruby193\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/custom_require.rb:36<br \/>\nn `require&#8217;<br \/>\nfrom C:\/Ruby193\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/custom_require.rb:36<br \/>\nn `require&#8217;<br \/>\nfrom (irb):2<br \/>\nfrom C:\/Ruby193\/bin\/irb:12:in `&lt;main&gt;&#8217;<br \/>\nirb(main):003:0&gt; require &#8216;rubygems&#8217;<br \/>\n=&gt; false<br \/>\nirb(main):004:0&gt; require &#8216;watir&#8217;<br \/>\nLoadError: cannot load such file &#8212; watir<br \/>\nfrom C:\/Ruby193\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/custom_require.rb:36<br \/>\nn `require&#8217;<br \/>\nfrom C:\/Ruby193\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/custom_require.rb:36<br \/>\nn `require&#8217;<br \/>\nfrom (irb):4<br \/>\nfrom C:\/Ruby193\/bin\/irb:12:in `&lt;main&gt;&#8217;<br \/>\nirb(main):005:0&gt; exit<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nFetching: win32-api-1.4.8-x86-mingw32.gem ( 29%)Fetching: win32-api-1.4.8-x86-<br \/>\nFetching: win32-api-1.4.8-x86-mingw32.gem ( 84%)Fetching: win32-api-1.4.8-x86-<br \/>\nFetching: win32-api-1.4.8-x86-mingw32.gem ( 24%)Fetching: win32-api-1.4.8-x86-<br \/>\nFetching: win32-api-1.4.8-x86-mingw32.gem ( 20%)ERROR:\u00a0 While executing gem ..<br \/>\n(Gem::RemoteFetcher::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/win32-a<br \/>\n-1.4.8-x86-mingw32.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nFetching: win32-api-1.4.8-x86-mingw32.gem (100%)<br \/>\nFetching: windows-api-0.4.0.gem (100%)<br \/>\nFetching: windows-pr-1.2.0.gem ( 22%)ERROR:\u00a0 While executing gem &#8230; (Gem::Rem<br \/>\neFetcher::FetchError)<br \/>\nSocketError: getaddrinfo: No such host is known.\u00a0 (http:\/\/rubygems.org\/gem<br \/>\nwindows-pr-1.2.0.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetcher::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.9<br \/>\n.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetcher::FetchError)<br \/>\nSocketError: getaddrinfo: No such host is known.\u00a0 (http:\/\/rubygems.org\/gem<br \/>\nhoe-2.9.4.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetcher::FetchError)<br \/>\nSocketError: getaddrinfo: No such host is known.\u00a0 (http:\/\/rubygems.org\/gem<br \/>\nhoe-2.9.4.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nFetching: hoe-2.9.4.gem ( 19%)ERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetc<br \/>\nr::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.9<br \/>\n.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nFetching: hoe-2.9.4.gem ( 16%)ERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFetc<br \/>\nr::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.9<br \/>\n.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir &#8211;no-ri &#8211;no-rdoc<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir<br \/>\nERROR:\u00a0 While executing gem &#8230; (Gem::DependencyError)<br \/>\nUnable to resolve dependencies: watir requires commonwatir (= 2.0.4), raut<br \/>\nation (~&gt; 0.6.3)<\/p>\n<p>C:\\Users\\guangjun&gt;<br \/>\nC:\\Users\\guangjun&gt;gem install commonwatir<br \/>\nFetching: hoe-2.12.3.gem ( 27%)ERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFet<br \/>\ner::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.1<br \/>\n3.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install commonwatir<br \/>\nFetching: hoe-2.12.3.gem ( 21%)ERROR:\u00a0 While executing gem &#8230; (Gem::RemoteFet<br \/>\ner::FetchError)<br \/>\ntoo many connection resets (http:\/\/production.cf.rubygems.org\/gems\/hoe-2.1<br \/>\n3.gem)<\/p>\n<p>C:\\Users\\guangjun&gt;gem install commonwatir<br \/>\nFetching: hoe-2.12.3.gem (100%)<br \/>\nFetching: s4t-utils-1.0.4.gem (100%)<br \/>\nWARNING: s4t-utils-1.0.4 has an invalid nil value for @cert_chain<br \/>\nFetching: builder-3.0.0.gem (100%)<br \/>\nFetching: user-choices-1.1.6.1.gem (100%)<br \/>\nFetching: commonwatir-2.0.4.gem (100%)<br \/>\nSuccessfully installed hoe-2.12.3<br \/>\nSuccessfully installed s4t-utils-1.0.4<br \/>\nSuccessfully installed builder-3.0.0<br \/>\nSuccessfully installed user-choices-1.1.6.1<br \/>\nSuccessfully installed commonwatir-2.0.4<br \/>\n5 gems installed<br \/>\nInstalling ri documentation for hoe-2.12.3&#8230;<br \/>\nInstalling ri documentation for s4t-utils-1.0.4&#8230;<br \/>\nInstalling ri documentation for builder-3.0.0&#8230;<br \/>\nInstalling ri documentation for user-choices-1.1.6.1&#8230;<br \/>\nInstalling ri documentation for commonwatir-2.0.4&#8230;<br \/>\nInstalling RDoc documentation for hoe-2.12.3&#8230;<br \/>\nInstalling RDoc documentation for s4t-utils-1.0.4&#8230;<br \/>\nInstalling RDoc documentation for builder-3.0.0&#8230;<br \/>\nInstalling RDoc documentation for user-choices-1.1.6.1&#8230;<br \/>\nInstalling RDoc documentation for commonwatir-2.0.4&#8230;<\/p>\n<p>C:\\Users\\guangjun&gt;gem install watir<br \/>\nFetching: nokogiri-1.5.0-x86-mingw32.gem (100%)<br \/>\nFetching: ffi-1.0.10-x86-mingw32.gem (100%)<br \/>\nFetching: rautomation-0.6.3.gem (100%)<br \/>\nSuccessfully installed nokogiri-1.5.0-x86-mingw32<br \/>\nSuccessfully installed ffi-1.0.10-x86-mingw32<br \/>\nSuccessfully installed rautomation-0.6.3<br \/>\nSuccessfully installed watir-2.0.4<br \/>\n4 gems installed<br \/>\nInstalling ri documentation for nokogiri-1.5.0-x86-mingw32&#8230;<br \/>\nunable to convert &#8220;\\xE9&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor README.ja.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE8&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor CHANGELOG.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE5&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor CHANGELOG.ja.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE9&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor README.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE2&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor ext\/nokogiri\/xml_node_set.c, skipping<br \/>\nInstalling ri documentation for ffi-1.0.10-x86-mingw32&#8230;<br \/>\nInstalling ri documentation for rautomation-0.6.3&#8230;<br \/>\nInstalling ri documentation for watir-2.0.4&#8230;<br \/>\nfile &#8216;def_wrap=R,def_wrap_guard=R&#8217; not found<br \/>\nInstalling RDoc documentation for nokogiri-1.5.0-x86-mingw32&#8230;<br \/>\nunable to convert &#8220;\\xE9&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor README.ja.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE8&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor CHANGELOG.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE5&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor CHANGELOG.ja.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE9&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor README.rdoc, skipping<br \/>\nunable to convert &#8220;\\xE2&#8221; to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GB<br \/>\nfor ext\/nokogiri\/xml_node_set.c, skipping<br \/>\nInstalling RDoc documentation for ffi-1.0.10-x86-mingw32&#8230;<br \/>\nInstalling RDoc documentation for rautomation-0.6.3&#8230;<br \/>\nInstalling RDoc documentation for watir-2.0.4&#8230;<br \/>\nfile &#8216;def_wrap=R,def_wrap_guard=R&#8217; not found<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5watir\u00a0\u00a0 gem install watir \u51fa\u4e86\u597d\u591a\u9519 \u4f8b\u5982\uff1atoo many connection resets SocketError: getaddrinfo: Unable to resolve dependencies: the installation aborts because of the network issue, but i don&#8217;t know why, the only thing i can do is that retry over and over again, it finally install successfully,\u00a0 below is my retry history \u4f46\u6709\u65f6\u597d\u50cf\u53c8\u53ef\u4ee5\u8fdb\u884c\u4e0b\u53bb\uff0c \u53ef\u80fd\u662f\u7531\u4e8e\u7f51\u7edc\u7684\u539f\u56e0\uff0c \u4e2d\u9014\u4f1a\u5931\u8d25\uff0c\u4e5f\u4e0d\u77e5\u9053\u662f\u4e3a\u4ec0\u4e48\uff0c \u53ea\u80fd\u4e00\u6b21\u4e00\u6b21\u8fdb\u91cd\u8bd5\uff0c\u6700\u7ec8\u8fd8\u662f\u6210\u529f\u5566\uff0c \u82b1\u4e86\u4e0d\u5c11\u65f6\u95f4 &#8230; <a title=\"\u5b89\u88c5watir   gem install watir \u51fa\u4e86\u597d\u591a\u9519\" class=\"read-more\" href=\"https:\/\/www.genepeng.com\/index.php\/299\" aria-label=\"More on \u5b89\u88c5watir   gem install watir \u51fa\u4e86\u597d\u591a\u9519\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,15,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/299"}],"collection":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":3,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions\/302"}],"wp:attachment":[{"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.genepeng.com\/index.php\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}