$ rails db:migrateを実行すると以下のメッセージが出てきて上手くいかないです。
rails aborted! LoadError: dlopen(/Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.21.dylib Referenced from: /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle Reason: image not found - /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.3/lib/mysql2.rb:36:in `<main>' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/config/application.rb:7:in `<main>' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/Rakefile:4:in `<main>' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `block in load' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:285:in `load' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:22:in `block in perform' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands/rake/rake_command.rb:20:in `perform' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:48:in `invoke' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/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/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency' /Users/naganoyuki/Desktop/Vessel_Trade_Queen/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require' bin/rails:4:in `<main>' (See full trace by running task with --trace)
以下説明を参考にしたのですが、それでも上手く行きませんでした。。。
https://qiita.com/yamazaki8934/items/48e65850873f3ecbee26
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。