railsで環境構築をしています。
rails sでサーバーを繋げようとしましたが、エラーがでしまい、localhost:3000に接続ができません。
どなたかわかる人がいたら教えてください。
「higahsinoren」はユーザー名になります。
commandline
1tounorennoMacBook-Pro:test_app higashinoren$ rails s 2[WARNING] Could not load command "rails/commands/server/server_command". Error: uninitialized constant URI::Generic. 3/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant' 4/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache' 5/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant' 6/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant' 7/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/ftp.rb:23:in `<module:URI>' 8/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/ftp.rb:13:in `<top (required)>' 9/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 10/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 11/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 12/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 13/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 14/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:107:in `<top (required)>' 15/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 16/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 17/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 18/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 19/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 20/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/rfc2396_parser.rb:13:in `<top (required)>' 21/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 22/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 23/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 24/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 25・ 26・ 27・ 28/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:99: warning: already initialized constant URI::VERSION_CODE 29/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:99: warning: previous definition of VERSION_CODE was here 30/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:100: warning: already initialized constant URI::VERSION 31/Users/higashinoren/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:100: warning: previous definition of VERSION was here 32rails aborted! 33NameError: uninitialized class variable @@schemes in URI 34/Users/higashinoren/test_app/config/application.rb:3:in `<top (required)>' 35/Users/higashinoren/test_app/Rakefile:4:in `<top (required)>' 36/Users/higashinoren/test_app/bin/rails:9:in `<top (required)>' 37/Users/higashinoren/test_app/bin/spring:15:in `<top (required)>' 38bin/rails:3:in `load' 39bin/rails:3:in `<main>' 40(See full trace by running task with --trace)
試したこと
再インストールもしましたが、無理でした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。