2013-05-29 3 views
0

전체적으로 stackoverflow를 검색하여 성공적으로 watir을 설치하는 방법에 대한 구체적인 대답을 얻었지만 설치에 실패했습니다. 다른 사람들에게도 마찬가지라고 생각하는 같은 오류가 나타납니다. 그러나 나는 그것을 해결할 수 없다. 아무도이 문제를 해결하는 데 문제를 해결해 주시겠습니까?윈도우 7에 watir gem 설치시 오류가 발생했습니다.

단계 :

루비 설치 - rubyinstaller-1.9.3-p429.exe

설치 DevKit (경로 : C : \ DevKit) - DevKit-TDM-32-4.5.2-20111229-1559 -sfx.exe (나는 instaled 다른 모든 버전뿐만 아니라 시도)에 cmd에

: 버전 2.0.3

로 업데이트

C:\DevKit\ruby dk.rb init 
C:\DevKit\ruby dk.rb install 
C:\DevKit\gem update --system 

보석 17,451,515,

가 Watir과 설치 : 나는 다음과 같은 오류를 얻고있다

C:\DevKit\gem install watir --no-ri --no-rdoc 

:

Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
The system cannot find the path specified. 
ERROR: Error installing watir: 
     ERROR: Failed to build gem native extension. 

    C:/Ruby193/bin/ruby.exe extconf.rb 
checking for libxml/parser.h... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=C:/Ruby193/bin/ruby 
     --with-zlib-dir 
     --without-zlib-dir 
     --with-zlib-include 
     --without-zlib-include=${zlib-dir}/include 
     --with-zlib-lib 
     --without-zlib-lib=${zlib-dir}/lib 
     --with-iconv-dir 
     --without-iconv-dir 
     --with-iconv-include 
     --without-iconv-include=${iconv-dir}/include 
     --with-iconv-lib 
     --without-iconv-lib=${iconv-dir}/lib 
     --with-xml2-dir 
     --without-xml2-dir 
     --with-xml2-include 
     --without-xml2-include=${xml2-dir}/include 
     --with-xml2-lib 
     --without-xml2-lib=${xml2-dir}/lib 
     --with-xslt-dir 
     --without-xslt-dir 
     --with-xslt-include 
     --without-xslt-include=${xslt-dir}/include 
     --with-xslt-lib 
     --without-xslt-lib=${xslt-dir}/lib 
     --with-libxslt-config 
     --without-libxslt-config 
     --with-pkg-config 
     --without-pkg-config 
     --with-libxml-2.0-config 
     --without-libxml-2.0-config 
     --with-pkg-config 
     --without-pkg-config 
     --with-libiconv-config 
     --without-libiconv-config 
     --with-pkg-config 
     --without-pkg-config 
C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to genera 
te an executable file. (RuntimeError) 
You have to install development tools first. 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postp 
one' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' 
     from C:/Ruby193/lib/ruby/1.9.1/mkmf.rb:969:in `find_header' 
     from extconf.rb:166:in `<main>' 


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri- 
1.6.0.rc1 for inspection. 
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.0.rc1/ext/nok 
ogiri/gem_make.out 
+0

을 시도 내가 이상 위의 오류를 제공 할 수있는 솔루션을 찾은 것 같아요. 내가 대답을 - http://stackoverflow.com/questions/1948043/ruby-cannot-install-watir-gem-on-windows?rq=1. 다음을 수행하십시오 : gem install watir --platform = mswin32 (32 비트) gem install watir --platform = mswin64 (64 비트) 작동해야합니다. 안부, Sanj – user1344631

답변

1

C:\DevKit\gem install watir --system