Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
macOS gem installation with brew'ed DBMSes

PostgreSQL

brew install postgresql
gem install pg -- --with-pg-config="$(brew --prefix postgresql)/bin/pg_config"

MySQL

brew install mysql-client
gem install mysql2 -- --with-mysql-dir="$(brew --prefix mysql-client)" --with-mysql-include="$(brew --prefix mysql-client)/include/mysql"

Redis

brew install redis
gem install redis hiredis

Note: gem should not be the system ruby. DO NOT sudo gem install ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment