rails s後、localgost:3000にアクセスするとLoadErrorが発生します。
色々調べてみたのですが、解決せずどなたかご教示いただけると幸いです。
やったこと
・gemの再インストール
・bundle update
エラー分は以下となります。
2020-07-07 23:51:30 +0900: Rack app error handling request { GET / } #<LoadError: Error loading the 'mysql2' Active Record adapter. Missing a gem it depends on? cannot load such file -- /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql/column.rb> /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:5:in `<main>' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql2_adapter.rb:3:in `<main>' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/connection_specification.rb:191:in `spec' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:975:in `establish_connection' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:60:in `establish_connection' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/railtie.rb:136:in `block (2 levels) in <class:Railtie>' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:51:in `each' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/base.rb:328:in `<module:ActiveRecord>' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/base.rb:27:in `<main>' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `block in require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/query_cache.rb:29:in `run' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:27:in `before' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:426:in `block in make_lambda' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:605:in `catch' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:605:in `block in default_terminator' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:199:in `block in halting' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:513:in `block in invoke_before' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:513:in `each' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:513:in `invoke_before' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:131:in `run_callbacks' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:110:in `run!' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:72:in `block in run!' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:69:in `tap' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.2/lib/active_support/execution_wrapper.rb:69:in `run!' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/executor.rb:12:in `call' /Users/ユーザ名/Taskun/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.4.2/lib/action_dispatch/middleware/static.rb:127:in `call'
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー