Getting the following error after running rake db:migrate
rake aborted! LoadError: dlopen(/Users/scott/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-
For users of rbenv:
rbenv
brew uninstall openssl brew install rbenv/tap/openssl@1.0 gem uninstall mysql2 gem install mysql2 -v '0.4.10' -- --with-opt-dir="$(brew --prefix rbenv/tap/openssl@1.0)"