0

I'm migrating my Rails App to PostgreSQL and have struggled with installing PostgreSQL locally for the past few days. I've tried Postres.app, homebrew, EnterpriseDB and each was unsuccessful.

I finally decided to uninstall the psql that comes pre-installed with Mountain Lion but that was unsuccessful as well.

ex. I ran: sudo /Library/PostgreSQL/9.1/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh in my terminal
and received a command not found error.

Ideally, I would like to uninstall psql and reinstall PostgreSQL with brew install postgresql but How do I go about uninstalling Mac OS X's psql?

FYI:
psql --version is psql (PostgreSQL) 9.1.4
which psql is /usr/bin/psql
and I'm running on Mac OS X 10.8.2

EDIT
During my homebrew installation, when I attempt to load PostgreSQL with:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

per brew info postgresql's instruction, I receive the error

launchctl: Couldn't stat("/Users/<username>/Library/LaunchAgents/homebrew.mxcl.postgresql.plist"): No such file or directory nothing found to load

Wilhelm
  • 1,407
  • 5
  • 16
  • 32
  • Do you checked the others questions about this? http://stackoverflow.com/questions/8037729/completely-uninstall-postgresql-9-0-4-from-mac-osx-lion http://stackoverflow.com/questions/2715055/how-to-uninstall-postgresql-on-my-mac-running-snow-leopard – Adriano Tadao Jul 15 '14 at 16:37
  • Thanks @AdrianoTadao but I have already seen those. For [this answer](http://stackoverflow.com/questions/2715055/how-to-uninstall-postgresql-on-my-mac-running-snow-leopard#answer-2768100) in particular. I get no errors until I run into the command `sudo dscl . delete /users/postgres` then I receive a `delete: Invalid Path DS Error: -14009 (eDSUnknownNodeName)` – Wilhelm Jul 15 '14 at 16:46
  • Did you run `ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents` as instructed by `brew info postgresql`? – Peter Eisentraut Nov 01 '14 at 10:57

0 Answers0