2012-10-01 62 views
0

一直試圖在WIN XP中安裝Devkit,但無法通過 以下幾點你能幫我嗎? --code如下:Watir:RubyInstaller DevKit安裝錯誤

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

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

C:\devkit>ruby dk.rb install --force 

**[INFO] Updating convenience notice gem override for 'C:/Ruby193'** 

[INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb' 

------------------------------------------------------ 

C:\devkit>devkitvars.bat 
Adding the DevKit to PATH... 

C:\devkit> 
C:\devkit>make --version 
GNU Make 3.81 
Copyright (C) 2006 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 

This program built for i686-pc-msys 

C:\devkit> 

我的問題是,當我嘗試IRB我得到下面這個錯誤消息,我雖然原因是,創業板未安裝

D:\Documents and Settings\cfoley1>irb 
irb(main):001:0> require "watir" 
=> true 

irb(main):002:0> 

irb(main):003:0* browser = Watir::Browser.new 
FFI::NotFoundError: Function '_get_errno' not found in [msvcrt.dll] 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:89:in `eval' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-process-0.7.0/lib/win32/p 
rocess/functions.rb:12:in `attach_pfunc' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-process-0.7.0/lib/win32/p 
rocess/functions.rb:64:in `<module:Functions>' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-process-0.7.0/lib/win32/p 
rocess/functions.rb:8:in `<top (required)>' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/win32-process-0.7.0/lib/win32/p 
rocess.rb:1:in `<top (required)>' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/ie-proces 
s.rb:1:in `<top (required)>' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i 
n `require' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/ie.rb:4:i 
n `<top (required)>' 
     from (eval):1:in `klass' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:89:in `eval' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:89:in `klass' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:79:in `set_options' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:142:in `set_sub_options' 
     from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commonwatir-2.0.4/lib/watir/bro 
wser.rb:64:in `new' 
     from (irb):3 
     from C:/Ruby193/bin/irb:12:in `<main>'irb(main):004:0> 
+0

你想用什麼版本的Watir的?根據你的例外情況,它看起來像你目前正在使用2.0.4。如果您使用最新的Watir版本,問題是否會發生? –

+0

是的,我從http://rubyinstaller.org/downloads下載了最新版本,仍然有相同的問題 – Sal

回答

0

我找到了解決辦法:

gem uninstall win32-process -v 0.7.0 
gem install win32-process -v 0.6.6 

感謝大家對我指向正確的方向

0

對我來說,它看起來就像你已經安裝了devkit。有問題嗎?

+0

問題顯示沒有研究或嘗試去描述這個問題。似乎不是DevKit,但Watir什麼不按預期工作。 RubyInstaller組發佈的用戶double:https://groups.google.com/d/topic/rubyinstaller/-Jo_nt1V6Fs/discussion –