Skip to content

Instantly share code, notes, and snippets.

@noverloop
Created November 26, 2012 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save noverloop/4148748 to your computer and use it in GitHub Desktop.
Save noverloop/4148748 to your computer and use it in GitHub Desktop.
Postgresql and Postgis on mountain lion
When installing on mountain lion:
installation:
brew install postgresql --without-ossp-uuid
initd /usr/local/var/postgres
mkdir /var/pgsql_socket
chown <user> /var/pgsql_socket
edit /usr/local/var/postgres/postgresql.conf
set unix_socket_directory to /var/pgsql_socket
install postgres launchctl scripts (see brew info postgresql)
"psql postgres" should now work
Installing postgis:
sudo brew edit postgis15
change all references of "postgresql9" to "postgresql"
brew install postgis15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment