Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to install watir on Windows 7 x64 #90

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

Attempting to install watir on Windows 7 x64 #90

chrisgundersen opened this issue Oct 26, 2011 · 1 comment

Comments

@chrisgundersen
Copy link

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
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants