That's what I did, but then trying to do gem install watir, I got the error.
See below: now I am getting a different error: C:\devkit>dk.rb install [INFO] RubyGems override already in place for c:/Ruby, skipping. [WARN] DevKit helper library already exists for c:/Ruby, skipping. C:\devkit>gem install watir ERROR: While executing gem ... (Zlib::BufError) buffer error C:\devkit>gem install watir ERROR: While executing gem ... (Zlib::BufError) buffer error On Tue, Mar 27, 2012 at 10:22 AM, Oscar Rieken <bis...@gmail.com> wrote: > https://github.com/oneclick/rubyinstaller/wiki/Development-Kit > > you have to install devkit > in order to do that you have to download it and extract it > then go into that folder that you extracted devkit to thru the command > prompt > type dk.rb init in the command line > then type dk.rb install > > then you can install the gems > > > On Tue, Mar 27, 2012 at 1:18 PM, Shlomit Gazit > <shlomitpatr...@gmail.com>wrote: > >> After installing devkit, I am still getting an error installing watir: >> After I failed with the above installation, I downgrade ruby and watir >> but still failing with the same error: >> >> C:\devkit>gem install watir --no-ri --no-rdoc >> Temporarily enhancing PATH to include DevKit... >> Building native extensions. This could take a while... >> ERROR: Error installing watir: >> ERROR: Failed to build gem native extension. >> >> C:/Ruby/bin/ruby.exe extconf.rb >> checking for ffi.h... no >> checking for #include <ffi.h> >> ... no >> checking for rb_thread_blocking_region()... no >> checking for ruby_thread_has_gvl_p()... no >> checking for ruby_native_thread_p()... no >> checking for rb_thread_call_with_gvl()... no >> creating extconf.h >> creating Makefile >> >> nmake >> 'nmake' is not recognized as an internal or external command, >> operable program or batch file. >> >> >> Gem files will remain installed in >> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11 for >> inspection. >> Results logged to >> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11/ext/ffi_c/gem_make.o >> ut >> >> C:\devkit> >> >> >> >> >> >> >> >> >> >> >> On Tue, Mar 27, 2012 at 10:15 AM, Shlomit Gazit <shlomitpatr...@gmail.com >> > wrote: >> >>> I dont remember doing it in the past, is that a new step? >>> >>> Shlomit. >>> >>> >>> On Wed, Mar 21, 2012 at 12:30 PM, Željko Filipin < >>> zeljko.fili...@gmail.com> wrote: >>> >>>> Did you install devkit? >>>> >>>> >>>> https://github.com/zeljkofilipin/watirbook/blob/master/installation/windows.md >>>> >>>> >>>> Željko >>>> -- >>>> watir.com/book - author >>>> >>>> >>>> >>>> On Wed, Mar 21, 2012 at 12:44 PM, Shlomit Gazit < >>>> shlomitpatr...@gmail.com> wrote: >>>> >>>>> Microsoft Windows XP [Version 5.1.2600] >>>>> (C) Copyright 1985-2001 Microsoft Corp. >>>>> >>>>> C:\Documents and Settings\Administrator>ruby -e 'require "watir";puts >>>>> Watir::IE: >>>>> :VERSION' >>>>> -e:1: warning: toplevel constant VERSION referenced by >>>>> Watir::IE::VERSION >>>>> 1.8.6 >>>>> >>>>> C:\Documents and Settings\Administrator>gem update watir >>>>> Updating installed gems >>>>> Updating commonwatir >>>>> Successfully installed commonwatir-2.0.4 >>>>> Updating firewatir >>>>> Successfully installed firewatir-1.9.4 >>>>> Updating watir >>>>> Building native extensions. This could take a while... >>>>> ERROR: Error installing watir: >>>>> ERROR: Failed to build gem native extension. >>>>> >>>>> C:/Ruby/bin/ruby.exe extconf.rb >>>>> checking for ffi.h... no >>>>> checking for #include <ffi.h> >>>>> ... no >>>>> checking for rb_thread_blocking_region()... no >>>>> checking for ruby_thread_has_gvl_p()... no >>>>> checking for ruby_native_thread_p()... no >>>>> checking for rb_thread_call_with_gvl()... no >>>>> creating extconf.h >>>>> creating Makefile >>>>> >>>>> nmake >>>>> 'nmake' is not recognized as an internal or external command, >>>>> operable program or batch file. >>>>> >>>>> >>>>> Gem files will remain installed in >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11 for >>>>> inspection. >>>>> Results logged to >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11/ext/ffi_c/gem_make.o >>>>> ut >>>>> Gems updated: commonwatir, firewatir >>>>> Installing ri documentation for commonwatir-2.0.4... >>>>> Installing ri documentation for firewatir-1.9.4... >>>>> Installing RDoc documentation for commonwatir-2.0.4... >>>>> Installing RDoc documentation for firewatir-1.9.4... >>>>> >>>>> C:\Documents and Settings\Administrator>ruby -e 'require "watir";puts >>>>> Watir::IE: >>>>> :VERSION' >>>>> -e:1: no such file to load -- watir/ie (LoadError) >>>>> >>>>> C:\Documents and Settings\Administrator>ruby -e 'require "watir";puts >>>>> Watir::IE: >>>>> :VERSION' >>>>> -e:1: no such file to load -- watir/ie (LoadError) >>>>> >>>>> C:\Documents and Settings\Administrator> >>>>> C:\Documents and Settings\Administrator>gem update --system >>>>> Updating RubyGems >>>>> Updating rubygems-update >>>>> ERROR: Error installing rubygems-update: >>>>> rubygems-update requires Ruby version >= 1.8.7. >>>>> Updating RubyGems to 1.3.7 >>>>> Installing RubyGems 1.3.7 >>>>> RubyGems 1.3.7 installed >>>>> >>>>> ∩╗┐=== 1.3.7 / 2010-05-13 >>>>> >>>>> NOTE: >>>>> >>>>> http://rubygems.org is now the default source for downloading gems. >>>>> >>>>> You may have sources set via ~/.gemrc, so you should replace >>>>> http://gems.rubyforge.org with http://rubygems.org >>>>> >>>>> http://gems.rubyforge.org will continue to work for the forseeable >>>>> future. >>>>> >>>>> New features: >>>>> >>>>> * `gem` commands >>>>> * `gem install` and `gem fetch` now report alternate platforms when a >>>>> matching one couldn't be found. >>>>> * `gem contents` --prefix is now the default as specified in --help. >>>>> Bug >>>>> #27211 by Mamoru Tasaka. >>>>> * `gem fetch` can fetch of old versions again. Bug #27960 by Eric >>>>> Hankins. >>>>> * `gem query` and friends output now lists platforms. Bug #27856 by >>>>> Greg >>>>> Hazel. >>>>> * `gem server` now allows specification of multiple gem dirs for >>>>> documentation. Bug #27573 by Yuki Sonoda. >>>>> * `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones. >>>>> * `gem unpack` now unpacks remote gems. >>>>> * --user-install is no longer the default. If you really liked it, >>>>> see >>>>> Gem::ConfigFile to learn how to set it by default. (This change >>>>> was made >>>>> in 1.3.6) >>>>> * RubyGems now has platform support for IronRuby. Patch #27951 by >>>>> Will Green. >>>>> >>>>> Bug fixes: >>>>> >>>>> * Require rubygems/custom_require if --disable-gem was set. Bug >>>>> #27700 by >>>>> Roger Pack. >>>>> * RubyGems now protects against exceptions being raised by plugins. >>>>> * rubygems/builder now requires user_interaction. Ruby Bug #1040 by >>>>> Phillip >>>>> Toland. >>>>> * Gem::Dependency support #version_requirements= with a warning. Fix >>>>> for old >>>>> Rails versions. Bug #27868 by Wei Jen Lu. >>>>> * Gem::PackageTask depends on the package dir like the other rake >>>>> package >>>>> tasks so dependencies can be hooked up correctly. >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> RubyGems installed the following executables: >>>>> C:/Ruby/bin/gem >>>>> >>>>> RubyGems system software updated >>>>> >>>>> C:\Documents and Settings\Administrator>gem install watir >>>>> Building native extensions. This could take a while... >>>>> ERROR: Error installing watir: >>>>> ERROR: Failed to build gem native extension. >>>>> >>>>> C:/Ruby/bin/ruby.exe extconf.rb >>>>> checking for ffi.h... no >>>>> checking for #include <ffi.h> >>>>> ... no >>>>> checking for rb_thread_blocking_region()... no >>>>> checking for ruby_thread_has_gvl_p()... no >>>>> checking for ruby_native_thread_p()... no >>>>> checking for rb_thread_call_with_gvl()... no >>>>> creating extconf.h >>>>> creating Makefile >>>>> >>>>> nmake >>>>> 'nmake' is not recognized as an internal or external command, >>>>> operable program or batch file. >>>>> >>>>> >>>>> Gem files will remain installed in >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11 for >>>>> inspection. >>>>> Results logged to >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11/ext/ffi_c/gem_make.o >>>>> ut >>>>> >>>>> C:\Documents and Settings\Administrator>ruby -e 'require "watir";puts >>>>> Watir::IE: >>>>> :VERSION' >>>>> -e:1: no such file to load -- watir/ie (LoadError) >>>>> >>>>> C:\Documents and Settings\Administrator>gem install mongrel --pre >>>>> Successfully installed gem_plugin-0.2.3 >>>>> Successfully installed mongrel-1.2.0.pre2-x86-mswin32 >>>>> 2 gems installed >>>>> Installing ri documentation for gem_plugin-0.2.3... >>>>> Installing ri documentation for mongrel-1.2.0.pre2-x86-mswin32... >>>>> Installing RDoc documentation for gem_plugin-0.2.3... >>>>> Installing RDoc documentation for mongrel-1.2.0.pre2-x86-mswin32... >>>>> >>>>> C:\Documents and Settings\Administrator>gem install watir >>>>> Building native extensions. This could take a while... >>>>> ERROR: Error installing watir: >>>>> ERROR: Failed to build gem native extension. >>>>> >>>>> C:/Ruby/bin/ruby.exe extconf.rb >>>>> checking for ffi.h... no >>>>> checking for #include <ffi.h> >>>>> ... no >>>>> checking for rb_thread_blocking_region()... no >>>>> checking for ruby_thread_has_gvl_p()... no >>>>> checking for ruby_native_thread_p()... no >>>>> checking for rb_thread_call_with_gvl()... no >>>>> creating extconf.h >>>>> creating Makefile >>>>> >>>>> nmake >>>>> 'nmake' is not recognized as an internal or external command, >>>>> operable program or batch file. >>>>> >>>>> >>>>> Gem files will remain installed in >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11 for >>>>> inspection. >>>>> Results logged to >>>>> C:/Ruby/lib/ruby/gems/1.8/gems/ffi-1.0.11/ext/ffi_c/gem_make.o >>>>> ut >>>>> >>>>> C:\Documents and Settings\Administrator> >>>>> >>>>> >>>>> -- >>>>> Before posting, please read http://watir.com/support. In short: >>>>> search before you ask, be nice. >>>>> >>>>> watir-general@googlegroups.com >>>>> http://groups.google.com/group/watir-general >>>>> watir-general+unsubscr...@googlegroups.com >>>>> >>>> >>>> -- >>>> Before posting, please read http://watir.com/support. In short: search >>>> before you ask, be nice. >>>> >>>> watir-general@googlegroups.com >>>> http://groups.google.com/group/watir-general >>>> watir-general+unsubscr...@googlegroups.com >>>> >>> >>> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-general@googlegroups.com >> http://groups.google.com/group/watir-general >> watir-general+unsubscr...@googlegroups.com >> > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com