一直试图在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>
答案 0 :(得分:0)
对我来说,看起来你已经安装了devkit。有问题吗?
答案 1 :(得分:0)
我找到了解决方案:
gem uninstall win32-process -v 0.7.0
gem install win32-process -v 0.6.6
感谢大家指出我正确的方向