Problem Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma. Solution Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew. Replace mysql-client with whichever mysql package you are using