0

一直在尝试在WIN XP中安装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 时,我在下面收到此错误消息,尽管原因是未安装 gem

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>
4

2 回答 2

0

对我来说,您似乎已经安装了 devkit。有问题吗?

于 2012-10-01T10:12:24.673 回答
0

我找到了解决方案:

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

感谢大家为我指明正确的方向

于 2012-10-02T12:03:00.613 回答