Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Ruby 3.3.0 #1041

Open
MrHinsh opened this issue Feb 15, 2024 · 1 comment
Open

Unable to install on Ruby 3.3.0 #1041

MrHinsh opened this issue Feb 15, 2024 · 1 comment

Comments

@MrHinsh
Copy link

MrHinsh commented Feb 15, 2024

I updated to the latest Ruby and Gems and still get this error.

ruby -v
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
gem -v
3.5.3
Edition	Windows 11 Pro
Version	24H2
Installed on	‎09/‎02/‎2024
OS build	26052.1000
Experience	Windows Feature Experience Pack 1000.26052.1000.0
❯ gem install github_changelog_generator
Fetching rainbow-3.1.1.gem
Fetching faraday-net_http-3.1.0.gem
Fetching sawyer-0.9.2.gem
Fetching public_suffix-5.0.4.gem
Fetching octokit-4.25.1.gem
Fetching faraday-2.9.0.gem
Fetching addressable-2.8.6.gem
Fetching multi_json-1.15.0.gem
Fetching faraday-http-cache-2.5.1.gem
Fetching traces-0.11.1.gem
Fetching protocol-http-0.26.1.gem
Fetching protocol-hpack-1.4.2.gem
Fetching protocol-http2-0.16.0.gem
Fetching protocol-http1-0.18.0.gem
Fetching timers-4.3.5.gem
Fetching io-event-1.4.3.gem
Fetching fiber-annotation-0.2.0.gem
Fetching fiber-local-1.0.0.gem
Fetching console-1.23.4.gem
Fetching async-2.8.1.gem
Fetching async-pool-0.4.0.gem
Fetching async-io-1.41.0.gem
Fetching async-http-0.63.0.gem
Fetching async-http-faraday-0.13.1.gem
Fetching concurrent-ruby-1.2.3.gem
Fetching i18n-1.14.1.gem
Fetching github_changelog_generator-1.16.4.gem
Fetching tzinfo-2.0.6.gem
Fetching connection_pool-2.4.1.gem
Fetching activesupport-7.1.3.gem
Successfully installed rainbow-3.1.1
Successfully installed faraday-net_http-3.1.0
Successfully installed faraday-2.9.0
Successfully installed public_suffix-5.0.4
Successfully installed addressable-2.8.6
Successfully installed sawyer-0.9.2
Successfully installed octokit-4.25.1
Successfully installed multi_json-1.15.0
Successfully installed faraday-http-cache-2.5.1
Successfully installed traces-0.11.1
Successfully installed protocol-http-0.26.1
Successfully installed protocol-hpack-1.4.2
Successfully installed protocol-http2-0.16.0
Successfully installed protocol-http1-0.18.0
Successfully installed timers-4.3.5
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing github_changelog_generator:
        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-15336-uz2oa7 sitelibdir\=./.gem.20240215-15336-uz2oa7 clean

current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/io-event-1.4.3/ext
make DESTDIR\= sitearchdir\=./.gem.20240215-15336-uz2oa7 sitelibdir\=./.gem.20240215-15336-uz2oa7
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

Originally posted by @MrHinsh in #1040

@MrHinsh
Copy link
Author

MrHinsh commented Feb 15, 2024

Also raised on socketry/io-event#98

❯ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant