Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save delacruzjames/885c53650d487b8dc6b5f49be3497296 to your computer and use it in GitHub Desktop.
Save delacruzjames/885c53650d487b8dc6b5f49be3497296 to your computer and use it in GitHub Desktop.
Installing mysql2 0.3.20 version
brew tap frnhr/homebrew-mariadb-connector-c-2
brew install frnhr/mariadb-connector-c-2/mariadb-connector-c
env ARCHFLAGS="-arch x86_64" gem install mysql2 -v '0.3.20' -- --with-mysql-config=/usr/local/Cellar/mariadb-connector-c/2.2.2/bin/mariadb_config --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment