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