今日からruby on railsに手を出そうと思ってrailsをインストールしようとしましたが、下記のようなエラーでrailsをインストールできませんでした。書籍とqiitaのインストール方法を試してみましたがどちらも同じエラーで止まってしまいます。何を修正すればrailsのインストールが可能でしょうか?
gem install rails
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
...
make failed, exit code 2
Gem files will remain installed in C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0 for inspection.
Results logged to C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/nio4r-2.1.0/gem_make.out
gem_make.out current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0/ext/nio4r C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20170820-9304-5aose.rb extconf.rb checking for unistd.h... yes checking for sys/select.h... no checking for poll.h... no checking for sys/epoll.h... no checking for sys/event.h... no checking for port.h... no checking for sys/resource.h... no creating Makefile To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/nio4r-2.1.0/mkmf.log current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0/ext/nio4r make "DESTDIR=" clean current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0/ext/nio4r make "DESTDIR=" generating nio4r_ext-x64-mingw32.def compiling bytebuffer.c bytebuffer.c: In function 'NIO_ByteBuffer_set_position': bytebuffer.c:130:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] bytebuffer.c: In function 'NIO_ByteBuffer_set_limit': bytebuffer.c:162:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] bytebuffer.c: In function 'NIO_ByteBuffer_fetch': bytebuffer.c:243:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] bytebuffer.c: In function 'NIO_ByteBuffer_put': bytebuffer.c:261:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] make: *** [monitor.o] Error 5 make failed, exit code 2
環境
windows10
ruby2.3.3
インストール参考にした資料
https://www.amazon.co.jp/dp/4774188832/ref=sr_1_1?ie=UTF8&qid=1503172386&sr=8-1&keywords=ruby
http://qiita.com/sasanquaneuf/items/068ab4e5940a790327ba