railsでrake db:のコマンドを実行すると、rake aborted!に続いて、
LoadError、Reason: image not foundのようなエラーが出ます。
どのように対処すれば良いのでしょうか?
$ bundle exec rake db:create
rake aborted!
LoadError: dlopen(/opt/local/lib/ruby2.2/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0/mysql2-0.3.17/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
Referenced from: /opt/local/lib/ruby2.2/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0/mysql2-0.3.17/mysql2/mysql2.bundle
Reason: image not found - /opt/local/lib/ruby2.2/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0/mysql2-0.3.17/mysql2/mysql2.bundle
/Users/abetomoki/rails_june/EU/config/application.rb:7:in <top (required)>' /Users/abetomoki/rails_june/EU/Rakefile:4:in
require'
/Users/abetomoki/rails_june/EU/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/07/08 01:07