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
# Install rails, mysql, etc by homebrew using this guide https://gorails.com/setup/macos/10.14-mojave - but if you require mysql and can't upgrade to Trilogy, this is required (and not in the guide at time of writing) | |
# With credit to Chris Oliver @excid3 at Go Rails | |
mysql_version=$(brew list --versions mysql | tr ' ' '\n' | tail -1) | |
mysql_path=$(brew --cellar mysql)/$mysql_version | |
gem install mysql2 -- \ | |
--with-mysql-lib=$mysql_path/lib \ | |
--with-mysql-dir=$mysql_path \ |
OlderNewer