I cannot call:
bundle install or bundle update
on Windows 7 SP1. I get the following error even with DevKit installed and WORKING!
bundle update Fetching source index for http://rubygems.org/ Using addressable (2.2.6) Using daemons (1.1.4) Installing hiredis (0.3.2) with native extensions C:/Ruby192/lib/ruby/site_ruby/ 1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
C:/Ruby192/bin/ruby.exe extconf.rb gcc -std=c99 -pedantic -c-O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c net.c:1:0: warning: -fPIC ignored for target (all code is position independent) net.c:35:24: fatal error: sys/socket.h: No such file or directory compilation terminated. make: * [net.o] Error 1 creating Makefile
make C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_hiredis_ext'" > hiredis_ext-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. -O3 -g -Wextra -Wno-unu sed-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-fiel d-initializers -Wno-long-long -IC:/Ruby192/lib/ruby/gems/1.9.1/gems/hiredis-0.3. 2/vendor/hiredis -o connection.o -c connection.c connection.c:1:24: fatal error: sys/socket.h: No such file or directory compilation terminated. make: * [connection.o] Error 1
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/hiredis-0 .3.2 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/hiredis-0.3.2/ext/hiredis_ ext/gem_make.out from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in
b lock in build_extensions' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:ine ach' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:inb uild_extensions' from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:ini nstall' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/sour ce.rb:101:inblock in install' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/ruby gems_integration.rb:78:inpreserve_paths' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/sour ce.rb:91:ininstall' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/inst aller.rb:58:inblock (2 levels) in run' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/ruby gems_integration.rb:93:inwith_build_args' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/inst aller.rb:57:inblock in run' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec _set.rb:12:inblock in each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec _set.rb:12:ineach' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec _set.rb:12:ineach' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/inst aller.rb:49:inrun' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/inst aller.rb:8:ininstall' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/cli. rb:270:inupdate' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vend or/thor/task.rb:22:inrun' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vend or/thor/invocation.rb:118:ininvoke_task' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vend or/thor.rb:246:indispatch' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vend or/thor/base.rb:389:instart' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/bin/bundle:13:in<top (required)>' from C:/Ruby192/bin/bundle:19:inload' from C:/Ruby192/bin/bundle:19:in `'