お世話になっております。Ruby on Railsをインストールしようとし、サイトを見て行ったのですがうまくいきませんでした。
知識不足なところが多々あると思いますがご教授いただければ幸いです。
RubyのインストールはRubyInstallerから「Ruby + Devkit 2.6.6-1(x64)」をインストールし、
C:\Users************>ruby -v ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
と出てきました。(***部分はファイル名にしてあります)
Rubyをインストールする際出てくる最後のDivkitの部分は1,2,3すべて実行しました。
その後Railsをインストールしようとしたところ
C:\Users************>gem install rails -v "6.0.3.1" Fetching concurrent-ruby-1.1.6.gem Fetching i18n-1.8.3.gem Fetching thread_safe-0.3.6.gem Fetching zeitwerk-2.3.0.gem Fetching activesupport-6.0.3.1.gem Fetching rack-2.2.2.gem Fetching tzinfo-1.2.7.gem Fetching rack-test-1.1.0.gem Fetching nokogiri-1.10.9-x64-mingw32.gem Fetching mini_portile2-2.4.0.gem Fetching crass-1.0.6.gem Fetching loofah-2.5.0.gem Fetching rails-html-sanitizer-1.3.0.gem Fetching rails-dom-testing-2.0.3.gem Fetching builder-3.2.4.gem Fetching erubi-1.9.0.gem Fetching actionview-6.0.3.1.gem Fetching actionpack-6.0.3.1.gem Fetching activemodel-6.0.3.1.gem Fetching activerecord-6.0.3.1.gem Fetching globalid-0.4.2.gem Fetching activejob-6.0.3.1.gem Fetching mini_mime-1.0.2.gem Fetching mail-2.7.1.gem Fetching actionmailer-6.0.3.1.gem Fetching nio4r-2.5.2.gem Fetching websocket-extensions-0.1.5.gem Fetching websocket-driver-0.7.2.gem Fetching actioncable-6.0.3.1.gem Fetching mimemagic-0.3.5.gem Fetching marcel-0.3.3.gem Fetching activestorage-6.0.3.1.gem Fetching actionmailbox-6.0.3.1.gem Fetching actiontext-6.0.3.1.gem Fetching rails-6.0.3.1.gem Fetching thor-1.0.1.gem Fetching method_source-1.0.0.gem Fetching railties-6.0.3.1.gem Fetching sprockets-4.0.2.gem Fetching sprockets-rails-3.2.1.gem Successfully installed concurrent-ruby-1.1.6 HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Successfully installed i18n-1.8.3 Successfully installed thread_safe-0.3.6 Successfully installed tzinfo-1.2.7 Successfully installed zeitwerk-2.3.0 Successfully installed activesupport-6.0.3.1 Successfully installed rack-2.2.2 Successfully installed rack-test-1.1.0 Successfully installed mini_portile2-2.4.0 Nokogiri is built with the packaged libraries: libxml2-2.9.10, libxslt-1.1.34, zlib-1.2.11, libiconv-1.15. Successfully installed nokogiri-1.10.9-x64-mingw32 Successfully installed crass-1.0.6 Successfully installed loofah-2.5.0 Successfully installed rails-html-sanitizer-1.3.0 Successfully installed rails-dom-testing-2.0.3 Successfully installed builder-3.2.4 Successfully installed erubi-1.9.0 Successfully installed actionview-6.0.3.1 Successfully installed actionpack-6.0.3.1 Successfully installed activemodel-6.0.3.1 Successfully installed activerecord-6.0.3.1 Successfully installed globalid-0.4.2 Successfully installed activejob-6.0.3.1 Successfully installed mini_mime-1.0.2 Successfully installed mail-2.7.1 Successfully installed actionmailer-6.0.3.1 0 [main] locale (30244) shared_info::initialize: size of shared memory region changed from 51128 to 40888 Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... 0 [main] make (61844) shared_info::initialize: size of shared memory region changed from 51128 to 40888 0 [main] make (60700) shared_info::initialize: size of shared memory region changed from 51128 to 40888 ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200607-35268-f3mb7.rb extconf.rb current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r make "DESTDIR=" clean 0 [main] make (61844) shared_info::initialize: size of shared memory region changed from 51128 to 40888 current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r make "DESTDIR=" 0 [main] make (60700) shared_info::initialize: size of shared memory region changed from 51128 to 40888 make failed, uncaught signal 11 Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2 for inspection. Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/nio4r-2.5.2/gem_make.out
と出てきて
C:\Users************>rails -v 'rails' は、内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルとして認識されていません。
となってしまいました。
手順が違うのか、それとも他に原因があるのかまた対処法も教えていただきたいです。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/06/07 08:38