Skip to content

Instantly share code, notes, and snippets.

@mrcasals
Created May 25, 2012 14:50
Show Gist options
  • Select an option

  • Save mrcasals/2788529 to your computer and use it in GitHub Desktop.

Select an option

Save mrcasals/2788529 to your computer and use it in GitHub Desktop.

Revisions

  1. mrcasals created this gist May 25, 2012.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    $ brew uninstall postgresql
    $ gem uninstall pg # ALL OF THEM
    $ rm -fr /usr/local/var/postgres
    $ launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
    $ pg_ctl -D /usr/local/var/postgres stop -s -m fast # WE SHOULD HAVE ALL postgres SERVERS & PROCESSES STOPPED BY NOW
    $ brew install postgres
    $ env ARCHFLAGS="-arch x86_64" gem install pg
    $ echo "DONE." >> /dev/null