tdreyno/middleman — Issue #141: Problems installing on Winblows
Author: hamishtaplin
Created: 2011-10-24 12:05:59+00:00
State: open

Attempted to upgrade a colleagues Middleman installation in Win7 and am getting this malarky:

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing middleman:
ERROR: Failed to build gem native extension.

c:/ruby/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:/ruby/bin/ruby -e "puts 'EXPORTS', 'Init_ffi_c'" > ffi_c-i386-mingw32.def
gcc -I. -Ic:/ruby/include/ruby-1.9.1/i386-mingw32 -I/c/ruby/include/ruby-1.9.1/r
uby/backward -I/c/ruby/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\"extconf.h\"
-O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-st
rings -Wno-missing-field-initializers -Wno-long-long -Wno-declaration-after-stat
ement -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

Gem files will remain installed in c:/ruby/lib/ruby/gems/1.9.1/gems/ffi-1.0.10 f
or inspection.
Results logged to c:/ruby/lib/ruby/gems/1.9.1/gems/ffi-1.0.10/ext/ffi_c/gem_make
.out

Have tried installing "gem install eventmachine -pre" but this doesn't make any difference. I also removed Ruby and devkit and reinstalled it all and the problem remains.

Any ideas?