Setting up old version of Postgres via Homebrew
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
# doh this is a keg-only formula. Had to manually link CLI regardless of install method | |
# run these to set up | |
brew tap homebrew/versions | |
brew install homebrew/versions/postgres94 | |
brew services start postgresql@9.4 export | |
# in your shell's RC file: | |
PATH=/usr/local/opt/postgresql@9.4/bin:$PATH | |
LDFLAGS=-L/usr/local/opt/postgresql@9.4/lib | |
CPPFLAGS=-I/usr/local/opt/postgresql@9.4/include | |
# For pkg-config to find this software you may need to set: | |
PKG_CONFIG_PATH=/usr/local/opt/postgresql@9.4/lib/pkgconfig | |
# -= end shell RC file =- | |
# do your normal postgresql setup now | |
initdb | |
psql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment