- install xcode command line:
xcode-select --install
- install mysql
brew install [email protected]
(i dont want to install mysql 8)
- export some compiling flag: (as show in
brew info [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"
- bundle install again
bundle install
Last active
February 15, 2021 05:38
-
-
Save manhdaovan/b2450500c52000ffe210becb9a0de551 to your computer and use it in GitHub Desktop.
Install mysql2 gem on MacOS catalina (10.15.x)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment