❯ gem install io-event
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing io-event:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/io-event-1.4.3/ext
C:/Ruby33-x64/bin/ruby.exe extconf.rb
checking for rb_ext_ractor_safe()... yes
checking for &rb_fiber_transfer()... yes
checking for -luring... no
checking for sys/epoll.h... no
checking for sys/event.h... no
checking for sys/eventfd.h... no
checking for rb_io_descriptor()... yes
checking for &rb_process_status_wait()... yes
checking for rb_fiber_current()... yes
checking for &rb_fiber_raise()... yes
checking for epoll_pwait2()... no
checking for ruby/io/buffer.h... yes
creating extconf.h
creating Makefile
current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/io-event-1.4.3/ext
make DESTDIR\= sitearchdir\=./.gem.20240215-71068-hwwrxs sitelibdir\=./.gem.20240215-71068-hwwrxs clean
current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/io-event-1.4.3/ext
make DESTDIR\= sitearchdir\=./.gem.20240215-71068-hwwrxs sitelibdir\=./.gem.20240215-71068-hwwrxs
generating IO_Event-x64-mingw-ucrt.def
compiling ./io/event/event.c
In file included from ./io/event/event.c:22:
./io/event/selector/selector.h:37:10: fatal error: sys/wait.h: No such file or directory
37 | #include <sys/wait.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:248: event.o] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/io-event-1.4.3 for inspection.
Results logged to C:/Ruby33-x64/lib/ruby/gems/3.3.0/extensions/x64-mingw-ucrt/3.3.0/io-event-1.4.3/gem_make.out