Last active
January 31, 2024 05:09
-
-
Save Bivek/3114a4886677fcb293b4afae60c3720e to your computer and use it in GitHub Desktop.
Install Mysql2 gem on M1 chip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Working solution | |
----------------- | |
gem install mysql2 -v '0.5.5' -- --with-mysql-config=$(brew --prefix mysql)/bin/mysql_config --with-ldflags="-L$(brew --prefix zstd)/lib -L$(brew --prefix openssl)/lib" --with-cppflags=-I$(brew --prefix openssl)/include | |
Better to use ```trilogy``` gem instead of ```mysql2``` for smooth setup process. | |
In your database.yml file update adapter to trilogy if you are using trilogy instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment