Created
May 25, 2012 14:50
-
-
Save mrcasals/2788529 to your computer and use it in GitHub Desktop.
Rails: Reinstall postgreSQL via brew ang pg gem on Mac OS X
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
$ 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment