前提・実現したいこと
bundle install後にエラーが表示されサーバーが始動しなくなったのでこのエラーを解決させたいです。
発生している問題・エラーメッセージ
ruby on railsで画像を追加するために
gemfileに
gem "carrierwave", "> 0.10.0"> 4.3"
gem "mini_magick", "
の二行を追加しbundle installした後にエラーが発生しサーバーが起動しなくなりました。
エラーメッセージ You've installed the binary version of mysql2. It was built using MySQL Connector/C version 6.1.6. It's recommended to use the exact same version to avoid potential issues. At the time of building this gem, the necessary DLL files were retrieved from: http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-6.1.6-win32.zip This gem *includes* vendor/libmysql.dll with redistribution notice in vendor/README. C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/activerecord-5.1.5/lib/active_record/connection_adapters/connection_specification.rb:188:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
該当のソースコード
ソースコード
試したこと
gemの中のバージョンを古いものや新しいものに入れ替えたりしていますが、まだ解決できていません。
プログラミング初心者のため解決するのに苦労しています。
解決策が分かる方がいらっしゃいましたらコメントをいただけると幸いです。
宜しくお願いいたします。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
gem 'mysql2'
'rails', '~> 5.1.4'
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。