On Tue, Oct 25, 2011 at 6:16 AM, John <kv.bij
...@gmail.com> wrote:
> Hello
Hello John,
> I am using Ruby version - ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-
> mingw32]
> Initially while trying to install Watir, I got the following error
> *************************************************************************** ************
> ERROR: Error installing watir:
> The 'ffi' native gem requires installed build tools.
> Please update your PATH to include build tools or download the DevKit
> from 'http://rubyinstaller.org/downloads' and follow the instructions
> at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
> *************************************************************************** ************
> I followed the intructions and installed the devkit
> 3.4.5-20100819-1535-sfx and followed th steps as listed at
> https://github.com/oneclick/rubyinstaller/wiki/Development-Kit and the
> installation went on fine. I even could install rdiscount succesfully
> and could see the devkit.rb and operating_system.rb files in my Ruby
> installation.
You need DevKit 4.5.2 for Ruby 1.8.7-p352 and newer versions of Ruby, not 3.4.5
> After all this while trying to install Watir, I get the following
> error
> *************************************************************************** ******************
> C:\DevKit>gem install watir --no-rdoc --no-ri -p http://ausproxy:74
> 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:/Ruby187/bin/ruby.exe extconf.rb
> checking for ffi.h... no
> checking for ffi.h in /usr/local/include... 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
> make
> gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -
> DRUBY_EXTCONF_H=\"extcon
> f.h\" -g -O2 -DFD_SETSIZE=256 -Wno-declaration-after-statement -
> c Abstrac
> tMemory.c
> In file included from AbstractMemory.c:28:
> compat.h:65:20: warning: extra tokens at end of #ifndef directive
> compat.h:69:24: warning: extra tokens at end of #ifndef directive
> In file included from AbstractMemory.h:29,
> from AbstractMemory.c:29:
> Types.h:68:17: ffi.h: No such file or directory
> In file included from Types.h:69,
> from AbstractMemory.h:29,
> from AbstractMemory.c:29:
The errors you're getting is because Ruby was build against GCC 4.5.2
and you're using GCC 3.4.5, expect more issues like that.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry