Installing EventMachine on Windows can fail with the following:
In file included from binder.cpp:20:0:
project.h:97:13: error: 'pid_t' has a previous declaration as 'typedef int pid_t'
In file included from project.h:151:0,
from binder.cpp:20:
ed.h: In member function 'void EventableDescriptor::SetSocketInvalid()':
ed.h:43:40: warning: overflow in implicit constant conversion [-Woverflow]
make: *** [binder.o] Error 1
This issue was fixed in EventMachine, but it has not been published as part of the official gem. Until it is, you can do the following manual workaround:
git clone https://github.com/eventmachine/eventmachine
cd eventmachine
git checkout 93ac34d0de1baf218f5c2ca61d39f4230737be7e
gem build eventmachine.gemspec
gem install --local eventmachine-1.0.3.gem
cd ..
rmdir /s/q eventmachine
Running gen install --local eventmachine-1.0.3.gem in MSYS MiniGW I get this message that says "WARNING: You don't have /home/Lenovo user/.gem/ruby/2.7.0/bin in your PATH,
gem executables will not run." when it is in my PATH.