Last active
August 10, 2022 19:07
-
-
Save joelcahalan/ec60393ae98332aa77e20b03815537de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
see https://github.com/brianmario/mysql2/issues/1250#issuecomment-1075672620 | |
brew update --preinstall | |
brew install [email protected] | |
export LDFLAGS="-L/usr/local/opt/[email protected]/lib" | |
export CPPFLAGS="-I/usr/local/opt/[email protected]/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" | |
And adding the following line, as the last statement in ~/.zshrc: | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
gem install mysql2 -- --with-opt-dir=/usr/local/opt/[email protected] –with-mysql-dir=/usr/local/opt/mysql | |
or possibly when less thant ruby 3 | |
gem install mysql2 --version '0.5.3' -- --with-opt-dir=ls -l /usr/local/Cellar/[email protected]/1.1.1m/lib --with-cppflags=-I/usr/local/Cellar/[email protected]/1.1.1m/include |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment