oneclick/rubyinstaller — Issue #90: Attempting to install watir on Windows 7 x64
Author: chrisgundersen
Created: 2011-10-26 18:57:28+00:00
State: open

I get the following error when trying to execute `gem install watir`:

> C:/Ruby192/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()... yes
> checking for ruby_thread_has_gvl_p()... yes
> checking for ruby_native_thread_p()... yes
> checking for rb_thread_call_with_gvl()... yes
> creating extconf.h
> creating Makefile
>
> make
> C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_ffi_c'" > ffi_c-i386-mingw32.def
> gcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby192/include/ruby-1.9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -Wno-declaration-after-statement -o AbstractMemory.o -c AbstractMemory.c
> In file included from AbstractMemory.c:28:0:
> 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:0,
> from AbstractMemory.c:29:
> Types.h:68:17: fatal error: ffi.h: No such file or directory
> compilation terminated.
> make: *** [AbstractMemory.o] Error 1

I have installed the dev kit from these instructions (https://github.com/oneclick/rubyinstaller/wiki/Development-Kit), and the "Hello RubyInstaller" test seems to be working. I'm running Windows 7 x64 Ultimate, ruby 1.9.2p290 (2011-07-09) [i386-mingw32], and gem 1.8.11. I've also looked at these two troubleshooting steps (https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun) and they don't seem to be my problem. Here is my output from `gem env`:

> RubyGems Environment:
> - RUBYGEMS VERSION: 1.8.11
> - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
> - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
> - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
> - EXECUTABLE DIRECTORY: C:/Ruby192/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86-mingw32
> - GEM PATHS:
> - C:/Ruby192/lib/ruby/gems/1.9.1
> - C:/Users/Chris/.gem/ruby/1.9.1
> - GEM CONFIGURATION:
> - :update_sources => true
> - :verbose => true
> - :benchmark => false
> - :backtrace => false
> - :bulk_threshold => 1000
> - REMOTE SOURCES:
> - http://rubygems.org/

Any help would be appreciated!