前提・実現したいこと
rubyを勉強し始めたばかりのもです。
gemを使用しようとすると以下のエラーが出現します。
発生している問題・エラーメッセージ
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- 2.4/rubyeventmachine (LoadError) from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/rubyeventmachine.rb:2:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:8:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/faye-websocket-0.10.7/lib/faye/websocket.rb:10:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/binance-1.2.0/lib/binance/client/websocket.rb:1:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/binance-1.2.0/lib/binance.rb:3:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require' from tes.rb:4:in `<main>'
試したこと
eventmachineが上手く作動していないのかと思い以下を参考にしました。
https://github.com/eventmachine/eventmachine/issues/806
gem install eventmachine --platform rubyを実行しインストーしようとしましたが今度は以下のエラーにより上手くインストールできませんでした。
Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7/ext C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20181009-7756-1rrz7vj.rb extconf.rb checking for -lcrypto... no checking for -lssleay32... no checking for -lcrypto... no checking for -lssleay32... no checking for -lcrypto... no checking for -lssleay32... no checking for -lcrypto... no checking for -lssleay32... no checking for rb_trap_immediate in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... no checking for rb_thread_call_without_gvl() in ruby/thread.h... no checking for rb_thread_fd_select()... no checking for rb_fdset_t in ruby/intern.h... yes checking for rb_wait_for_single_fd()... no checking for rb_enable_interrupt()... no checking for rb_time_new()... no checking for inotify_init() in sys/inotify.h... no checking for __NR_inotify_init in sys/syscall.h... no checking for writev() in sys/uio.h... no checking for pipe2() in unistd.h... no checking for accept4() in sys/socket.h... no checking for SOCK_CLOEXEC in sys/socket.h... no checking for windows.h... yes checking for winsock.h... yes checking for -lkernel32... no could not find library: kernel32 *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby24-x64/bin/$(RUBY_BASE_NAME) --with-ssl-dir --without-ssl-dir --with-ssl-include --without-ssl-include=${ssl-dir}/include --with-ssl-lib --without-ssl-lib=${ssl-dir}/lib --with-openssl-config --without-openssl-config --with-pkg-config --without-pkg-config --with-cryptolib --without-cryptolib --with-ssleay32lib --without-ssleay32lib --with-ssl-dir --without-ssl-dir --with-ssl-include --without-ssl-include=${ssl-dir}/include --with-ssl-lib --without-ssl-lib=${ssl-dir}/lib --with-cryptolib --without-cryptolib --with-ssleay32lib --without-ssleay32lib --with-ssl-dir --without-ssl-dir --with-ssl-include --without-ssl-include=${ssl-dir}/include --with-ssl-lib --without-ssl-lib=${ssl-dir}/lib --with-cryptolib --without-cryptolib --with-ssleay32lib --without-ssleay32lib --with-ssl-dir --without-ssl-dir --with-ssl-include --without-ssl-include=${ssl-dir}/include --with-ssl-lib --without-ssl-lib=${ssl-dir}/lib --with-cryptolib --without-cryptolib --with-ssleay32lib --without-ssleay32lib --with-kernel32lib --without-kernel32lib To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/eventmachine-1.2.7/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/eventmachine-1.2.7/gem_make.out
初心者であまり知識が無いのでこれ以上進めずにいます。
なにがいけないのかアドバイス頂けるとありがたいです。
足りない情報があれば教えて頂ければ追加します。
よろしくお願いします。
補足情報(FW/ツールのバージョンなど)
ridk versionの結果は以下です。
ruby: path: C:/Ruby24-x64 version: 2.4.4 platform: x64-mingw32 ruby_installer: package_version: 2.4.4-2 git_commit: 513abb8 msys2: path: C:\Ruby24-x64\msys64 cc: x86_64-w64-mingw32-gcc (Rev1, Built by MSYS2 project) 8.2.0 sh: GNU bash, バージョン 4.4.19(3)-release (x86_64-pc-msys) os: Microsoft Windows [Version 6.1.7601]

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/10 02:53 編集
2018/10/10 03:03
2018/10/10 03:57
2018/10/10 08:59
2018/10/10 09:53
2018/10/10 10:24
2018/10/10 11:45
2018/10/10 16:30
2018/10/10 23:00
2018/10/10 23:15
2018/10/10 23:59
2018/10/11 00:48
2018/10/11 01:59 編集
2018/10/11 03:46
2018/10/12 00:08
2018/10/12 02:40 編集
2018/10/12 09:05 編集