{"id":7359,"date":"2014-06-07T02:36:07","date_gmt":"2014-06-07T02:36:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/ruby-problem-installing-eventmachine-under-windows-7-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:36:07","modified_gmt":"2014-06-07T02:36:07","slug":"ruby-problem-installing-eventmachine-under-windows-7-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/ruby-problem-installing-eventmachine-under-windows-7-collection-of-common-programming-errors\/","title":{"rendered":"Ruby: problem installing EventMachine under Windows 7-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to install the gem EventMachine on Windows 7 (using Ruby 1.9.2 with RubyInstaller) via bundle, but I get the following error. I also installed DevKit and it is working, but I still can&#8217;t figure out what the problem is:<\/p>\n<pre><code>Installing eventmachine (0.12.10) with native extensions C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9\n.1\/rubygems\/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to bu\nild gem native extension. (Gem::Installer::ExtensionBuildError)\n\n        C:\/Ruby192\/bin\/ruby.exe extconf.rb\nchecking for rb_trap_immediate in ruby.h,rubysig.h... no\nchecking for rb_thread_blocking_region()... yes\nchecking for inotify_init() in sys\/inotify.h... no\nchecking for __NR_inotify_init in sys\/syscall.h... no\nchecking for writev() in sys\/uio.h... no\nchecking for rb_thread_check_ints()... yes\nchecking for rb_time_new()... yes\nchecking for windows.h... yes\nchecking for winsock.h... yes\nchecking for main() in -lkernel32... yes\nchecking for main() in -lrpcrt4... yes\nchecking for main() in -lgdi32... yes\nchecking for main() in -lssl... no\ncreating Makefile\n\nmake\nC:\/Ruby192\/bin\/ruby -e \"puts 'EXPORTS', 'Init_rubyeventmachine'\"  &gt; rubyeventmachine-i386-\nmingw32.def\ng++ -I. -IC:\/Ruby192\/include\/ruby-1.9.1\/i386-mingw32 -I\/C\/Ruby192\/include\/ruby-1.9.1\/ruby\/\nbackward -I\/C\/Ruby192\/include\/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_RE\nGION -DHAVE_TBR -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H\n -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_MAKE_PAIR    -O3 -g -Wextra -Wno-unused-parameter -\nWno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-\nlong   -o binder.o -c binder.cpp\nIn file included from project.h:137:0,\n                 from binder.cpp:20:\nbinder.h:35:34: warning: type qualifiers ignored on function return type\nIn file included from project.h:138:0,\n                 from binder.cpp:20:\nem.h:91:47: warning: type qualifiers ignored on function return type\nem.h:92:76: warning: type qualifiers ignored on function return type\nem.h:93:56: warning: type qualifiers ignored on function return type\nem.h:95:57: warning: type qualifiers ignored on function return type\nem.h:96:60: warning: type qualifiers ignored on function return type\nem.h:97:58: warning: type qualifiers ignored on function return type\nem.h:98:55: warning: type qualifiers ignored on function return type\nem.h:99:36: warning: type qualifiers ignored on function return type\nem.h:101:47: warning: type qualifiers ignored on function return type\nem.h:106:42: warning: type qualifiers ignored on function return type\nem.h:123:45: warning: type qualifiers ignored on function return type\nem.h:132:36: warning: type qualifiers ignored on function return type\nIn file included from project.h:145:0,\n                 from binder.cpp:20:\neventmachine.h:45:61: warning: type qualifiers ignored on function return type\neventmachine.h:46:112: warning: type qualifiers ignored on function return type\neventmachine.h:47:69: warning: type qualifiers ignored on function return type\neventmachine.h:49:73: warning: type qualifiers ignored on function return type\neventmachine.h:62:75: warning: type qualifiers ignored on function return type\neventmachine.h:63:74: warning: type qualifiers ignored on function return type\neventmachine.h:64:77: warning: type qualifiers ignored on function return type\neventmachine.h:65:41: warning: type qualifiers ignored on function return type\nIn file included from project.h:145:0,\n                 from binder.cpp:20:\neventmachine.h:99:60: warning: type qualifiers ignored on function return type\neventmachine.h:100:58: warning: type qualifiers ignored on function return type\neventmachine.h:102:60: warning: type qualifiers ignored on function return type\neventmachine.h:105:41: warning: type qualifiers ignored on function return type\ng++ -I. -IC:\/Ruby192\/include\/ruby-1.9.1\/i386-mingw32 -I\/C\/Ruby192\/include\/ruby-1.9.1\/ruby\/\nbackward -I\/C\/Ruby192\/include\/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_RE\nGION -DHAVE_TBR -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H\n -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_MAKE_PAIR    -O3 -g -Wextra -Wno-unused-parameter -\nWno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-\nlong   -o cmain.o -c cmain.cpp\nIn file included from project.h:137:0,\n                 from cmain.cpp:20:\nbinder.h:35:34: warning: type qualifiers ignored on function return type\nIn file included from project.h:138:0,\n                 from cmain.cpp:20:\nem.h:91:47: warning: type qualifiers ignored on function return type\nem.h:92:76: warning: type qualifiers ignored on function return type\nem.h:93:56: warning: type qualifiers ignored on function return type\nem.h:95:57: warning: type qualifiers ignored on function return type\nem.h:96:60: warning: type qualifiers ignored on function return type\nem.h:97:58: warning: type qualifiers ignored on function return type\nem.h:98:55: warning: type qualifiers ignored on function return type\nem.h:99:36: warning: type qualifiers ignored on function return type\nem.h:101:47: warning: type qualifiers ignored on function return type\nem.h:106:42: warning: type qualifiers ignored on function return type\nem.h:123:45: warning: type qualifiers ignored on function return type\nem.h:132:36: warning: type qualifiers ignored on function return type\nIn file included from project.h:145:0,\n                 from cmain.cpp:20:\neventmachine.h:45:61: warning: type qualifiers ignored on function return type\neventmachine.h:46:112: warning: type qualifiers ignored on function return type\neventmachine.h:47:69: warning: type qualifiers ignored on function return type\neventmachine.h:49:73: warning: type qualifiers ignored on function return type\neventmachine.h:62:75: warning: type qualifiers ignored on function return type\neventmachine.h:63:74: warning: type qualifiers ignored on function return type\neventmachine.h:64:77: warning: type qualifiers ignored on function return type\neventmachine.h:65:41: warning: type qualifiers ignored on function return type\nIn file included from project.h:145:0,\n                 from cmain.cpp:20:\neventmachine.h:99:60: warning: type qualifiers ignored on function return type\neventmachine.h:100:58: warning: type qualifiers ignored on function return type\neventmachine.h:102:60: warning: type qualifiers ignored on function return type\neventmachine.h:105:41: warning: type qualifiers ignored on function return type\ncmain.cpp:98:71: warning: type qualifiers ignored on function return type\ncmain.cpp:109:122: warning: type qualifiers ignored on function return type\ncmain.cpp:119:79: warning: type qualifiers ignored on function return type\ncmain.cpp:129:83: warning: type qualifiers ignored on function return type\ncmain.cpp:260:85: warning: type qualifiers ignored on function return type\ncmain.cpp:270:84: warning: type qualifiers ignored on function return type\ncmain.cpp:280:88: warning: type qualifiers ignored on function return type\ncmain.cpp:290:51: warning: type qualifiers ignored on function return type\ncmain.cpp:300:70: warning: type qualifiers ignored on function return type\ncmain.cpp:320:55: warning: type qualifiers ignored on function return type\ncmain.cpp:546:70: warning: type qualifiers ignored on function return type\ncmain.cpp:669:68: warning: type qualifiers ignored on function return type\ncmain.cpp: In function 'int evma_send_file_data_to_connection(long unsigned int, const cha\nr*)':\ncmain.cpp:752:6: error: cannot convert 'stat*' to '_stati64*' for argument '2' to 'int _fs\ntati64(int, _stati64*)'\nmake: *** [cmain.o] Error 1\n\n\nGem files will remain installed in C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/eventmachine-0.12.1\n0 for inspection.\nResults logged to C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/eventmachine-0.12.10\/ext\/gem_make.ou\nt\n        from C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/installer.rb:529:in `block in bu\nild_extensions'\n        from C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/installer.rb:504:in `each'\n        from C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/installer.rb:504:in `build_exten\nsions'\n        from C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9.1\/rubygems\/installer.rb:180:in `install'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/source.rb:101:\nin `block in install'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/rubygems_integ\nration.rb:78:in `preserve_paths'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/source.rb:91:i\nn `install'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/installer.rb:5\n8:in `block (2 levels) in run'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/rubygems_integ\nration.rb:93:in `with_build_args'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/installer.rb:5\n7:in `block in run'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/spec_set.rb:12\n:in `block in each'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/spec_set.rb:12\n:in `each'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/spec_set.rb:12\n:in `each'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/installer.rb:4\n9:in `run'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/installer.rb:8\n:in `install'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/cli.rb:222:in\n`install'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/vendor\/thor\/ta\nsk.rb:22:in `run'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/vendor\/thor\/in\nvocation.rb:118:in `invoke_task'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/vendor\/thor.rb\n:246:in `dispatch'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/lib\/bundler\/vendor\/thor\/ba\nse.rb:389:in `start'\n        from C:\/Ruby192\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.15\/bin\/bundle:13:in `'\n        from C:\/Ruby192\/bin\/bundle:19:in `load'\n        from C:\/Ruby192\/bin\/bundle:19:in `'\n<\/code><\/pre>\n<p>Thanks a lot in advance!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to install the gem EventMachine on Windows 7 (using Ruby 1.9.2 with RubyInstaller) via bundle, but I get the following error. I also installed DevKit and it is working, but I still can&#8217;t figure out what the problem is: Installing eventmachine (0.12.10) with native extensions C:\/Ruby192\/lib\/ruby\/site_ruby\/1.9 .1\/rubygems\/installer.rb:551:in `rescue in block in build_extensions&#8217;: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7359","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7359"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7359\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}