Skip to content

Instantly share code, notes, and snippets.

@stringsn88keys
Created December 7, 2017 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stringsn88keys/8059e2f1d6ff88f299f20ebbd3ce47ec to your computer and use it in GitHub Desktop.
Save stringsn88keys/8059e2f1d6ff88f299f20ebbd3ce47ec to your computer and use it in GitHub Desktop.
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