
Install mysql2 gem on macOS using MAMP as mySQL server
When installing mysql2 gem on a system using MAMP as mySQL server, you may end up with a compilation error because of incorrect mysql path. To deal with this problem, instead of gem install mysql2, try to specify mysql configuration directory: 1gem install mysql2 -- …