Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up old version of Postgres via Homebrew
# 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