Skip to content

Attempting to install watir on Windows 7 x64 #90

Closed
chrisgundersen opened this Issue Oct 26, 2011 · 1 comment

2 participants

@chrisgundersen

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:

Any help would be appreciated!

@luislavena
One-Click Project member

Hello,

The issue tracker of RubyInstaller is to deal with issues related to the installer or the packages itself, neither is Ruby or a 3rd party library installation. This is mentioned on Issue #39

I recommend you check RubyInstaller group, there has been threads about FFI and Windows.

http://groups.google.com/group/rubyinstaller/

Perhaps you should also lock against version 1.0.9 instead of 1.1.0

@luislavena luislavena closed this Oct 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.