環境
windows10 sudoは使えません
ruby2.6.6
エラー内容
ruby
1C:\Users\81802\Desktop\sample>rails server
すると
ruby
1Could not find gem 'unicorn (~> 5.5.1) x64-mingw32' in any of the gem sources listed in your Gemfile. 2Run `bundle install` to install missing gems.
となり、このエラーが解除できません。
試したこと
bundle updateとbundle installすると同じエラーが出ました。
Gemfileにunicornやkgioを記述してもエラーが出ます。
どうすればよろしいでしょうか。
ruby
1Installing kgio 2.11.3 with native extensions 2Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 3 4current directory: 5C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/gems/kgio-2.11.3/ext/kgio 6C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r 7./siteconf20200508-27212-i1wxl3.rb extconf.rb 8checking for CLOCK_MONOTONIC in time.h... yes 9checking for clockid_t in time.h... yes 10checking for clock_gettime() in -lrt... no 11checking for t_open() in -lnsl... no 12checking for socket() in -lsocket... no 13checking for poll() in poll.h... no 14checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no 15getaddrinfo required 16*** extconf.rb failed *** 17Could not create Makefile due to some reason, probably lack of necessary 18libraries and/or headers. Check the mkmf.log file for more details. You may 19need configuration options. 20 21Provided configuration options: 22 --with-opt-dir 23 --without-opt-dir 24 --with-opt-include 25 --without-opt-include=${opt-dir}/include 26 --with-opt-lib 27 --without-opt-lib=${opt-dir}/lib 28 --with-make-prog 29 --without-make-prog 30 --srcdir=. 31 --curdir 32 --ruby=C:/Ruby26-x64/bin/$(RUBY_BASE_NAME) 33 --with-rtlib 34 --without-rtlib 35 --with-nsllib 36 --without-nsllib 37 --with-socketlib 38 --without-socketlib 39 40To see why this extension failed to compile, please check the mkmf.log which can 41be found here: 42 43C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/extensions/x64-mingw32/2.6.0/kgio-2.11.3/mkmf.log 44 45extconf failed, exit code 1 46 47Gem files will remain installed in 48C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/gems/kgio-2.11.3 for inspection. 49Results logged to 50C:/Users/81802/Desktop/sample/sample/ruby/2.6.0/extensions/x64-mingw32/2.6.0/kgio-2.11.3/gem_make.out 51 52An error occurred while installing kgio (2.11.3), and Bundler cannot continue. 53Make sure that `gem install kgio -v '2.11.3' --source 'https://rubygems.org/'` 54succeeds before bundling. 55 56In Gemfile: 57 unicorn was resolved to 5.5.5, which depends on 58 kgio