前提・実現したいこと
Rubyでの開発を目指して勉強しています。
rubyのバージョンはruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
rails のバージョンは,Rails 6.1.3 です.
発生している問題・エラーメッセージ
rails new で プロジェクトを作成しようとすると以下のようなメッセージ(message1)が表示されて終了します.この後Rails 上でサーバを起動しようとするとエラーメッセージ(message2)を表示して起動しないのでRailsを使用したシステム開発
ができない状態です.
エラーメッセージ (message1) Bundle complete! 15 Gemfile dependencies, 71 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. run bundle binstubs bundler rails webpacker:install rails aborted! Errno::ENOENT: No such file or directory - bs_fetch:open_current_file:open bin/rails:4:in `<main>' (See full trace by running task with --trace) (message2) c:\WorkForder\ruby\project_data\rails\hello_rails>rails s Traceback (most recent call last): 25: from bin/rails:4:in `<main>' 24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/commands.rb:18:in `<main>' 18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/command.rb:50:in `invoke' 17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/command/base.rb:69:in `perform' 16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' 15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' 14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run' 13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/commands/server/server_command.rb:135:in `perform' 12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/commands/server/server_command.rb:135:in `tap' 11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.1.3/lib/rails/commands/server/server_command.rb:138:in `block in perform' 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/dependencies.rb:332:in `require' 9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/dependencies.rb:299:in `load_dependency' 8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/dependencies.rb:332:in `block in require' 7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/compile_cache/iseq.rb:55:in `load_iseq' 1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/compile_cache/iseq.rb:30:in `fetch' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.2/lib/bootsnap/compile_cache/iseq.rb:30:in `fetch': No such file or directory - bs_fetch:open_current_file:open (Errno::ENOENT) ### 該当のソースコード rubyのバージョンはruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32] rails のバージョンは,Rails 6.1.3 です. ### 試したこと まだ勉強を始めたばかりなので,Ruby と Rails を何回か再インストールしました. インストールの手順はWeb上の参考資料で行いました. ### 補足情報(FW/ツールのバージョンなど) ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー