Ruby on Rails 4.1.8 Gem::LoadError for mysql2 gem
问题 I picked up a 4 year old project written in Ruby 2.1.3 and Rails 4.1.8 . Very few of the gems were versioned but I've managed to get the project running locally by installing mysql2 0.3.20 as suggested in multiple other threads. Doing this required me to (on MacOS) downgrade openssl and mysql with brew install mysql@57 and brew install openssl@10 . I could then install mysql2 with by passing the correct libraries to it: gem install mysql2 -v 0.3.20 -- --with-mysql-config=/usr/local/opt/mysql