Last active
May 25, 2017 08:09
-
-
Save stephanschubert/6547993 to your computer and use it in GitHub Desktop.
How to install mysql2 gem on OSX
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
# Assumes you're using homebrew. | |
# Adjust the version to your convenience. | |
env ARCHFLAGS="-Os -g -fno-strict-aliasing -arch x86_64" gem install mysql2 -v '0.3.19' -- \ | |
--with-mysql-include=`brew --prefix mysql`/include \ | |
--with-mysql-config=`brew --prefix mysql`/bin/mysql_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you have to adjust the
CFLAGS
inmysql_config
too - remove: