Skip to content

Instantly share code, notes, and snippets.

@schmich
Last active October 17, 2020 16:39
Show Gist options
  • Select an option

  • Save schmich/d9a6badb40bcf8cde5ed to your computer and use it in GitHub Desktop.

Select an option

Save schmich/d9a6badb40bcf8cde5ed to your computer and use it in GitHub Desktop.
Install EventMachine on Windows

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

More details.

Copy link

ghost commented Oct 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment