{"action":"opened","issue":{"number":165,"created_at":"2011-10-20T16:56:11Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I am trying to install the most up to date ffi gem from github, on a Windows XP 32 bit system, but installation fails.\r\n\r\nHere are the steps I used:\r\ngit clone git://github.com/ffi/ffi.git\r\ncd ffi\r\nrake gem:install\r\n\r\nThe following error is produced:\r\n\r\n\r\n  Successfully built RubyGem\r\n  Name: ffi\r\n  Version: 1.0.10\r\n  File: ffi-1.0.10.gem\r\nmv ffi-1.0.10.gem ../ffi-1.0.10.gem\r\n gem.bat install --local pkg/ffi-1.0.10\r\nTemporarily enhancing PATH to include DevKit...\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing pkg/ffi-1.0.10:\r\n        ERROR: Failed to build gem native extension.\r\n\r\n        C:/Ruby192/bin/ruby.exe extconf.rb\r\nchecking for ffi.h... no\r\nchecking for ffi.h in /usr/local/include... no\r\nchecking for rb_thread_blocking_region()... yes\r\nchecking for ruby_thread_has_gvl_p()... yes\r\nchecking for ruby_native_thread_p()... yes\r\nchecking for rb_thread_call_with_gvl()... yes\r\ncreating extconf.h\r\ncreating Makefile\r\n\r\nmake\r\nC:/Ruby192/bin/ruby -e \"puts 'EXPORTS', 'Init_ffi_c'\"  > ffi_c-i386-mingw32.def\r\ngcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby192/include/ruby-1\r\n.9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I. -DRUBY_EXTCONF_H=\\\"extcon\r\nf.h\\\"    -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -\r\nWwrite-strings -Wno-missing-field-initializers -Wno-long-long -Wno-declaration-a\r\nfter-statement   -o AbstractMemory.o -c AbstractMemory.c\r\nIn file included from AbstractMemory.c:28:0:\r\ncompat.h:65:20: warning: extra tokens at end of #ifndef directive\r\ncompat.h:69:24: warning: extra tokens at end of #ifndef directive\r\nIn file included from AbstractMemory.h:29:0,\r\n                 from AbstractMemory.c:29:\r\nTypes.h:68:17: fatal error: ffi.h: No such file or directory\r\ncompilation terminated.\r\nmake: *** [AbstractMemory.o] Error 1\r\n\r\n\r\nGem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.1\r\n0 for inspection.\r\nResults logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.10/ext/ffi_c/gem_m\r\nake.out\r\nrake aborted!\r\nCommand failed with status (1): [ gem.bat install --local pkg/ffi-1.0.10...]\r\n\r\nTasks: TOP => gem:install\r\n(See full trace by running task with --trace)\r\n\r\nMy Ruby version is:\r\nruby -v\r\nruby 1.9.2p290 [i386-mingw32]\r\n\r\nAny help would be appreciated.\r\n","comments":0,"title":"Installing from github on Windows","updated_at":"2011-10-20T16:56:11Z","url":"https://api.github.com/repos/ffi/ffi/issues/165","id":2006888,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/84ff46fe084906a68ad7f21928b5d649?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"84ff46fe084906a68ad7f21928b5d649","url":"https://api.github.com/users/mphi","id":1005347,"login":"mphi"},"html_url":"https://github.com/ffi/ffi/issues/165","labels":[],"state":"open"},"legacy":{"number":165,"action":"opened","issue":2006888}}