I just installed Postgres.app on my Mac but it won’t work properly. I finished the installation and the app icon is on the menu bar and it says it is listening on port 5432, however, that is what happens if I try to run it from the command-line:
~ $ psql
zsh: correct 'psql' to 'sl' [nyae]? n
zsh: command not found: psql
I had previously installed PostgreSQL via Homebrew but removed it before installing Postgres.app. I am running Mac OS X Lion.
I appreciate any help, I really want to have PostgreSQL running on my machine.
The
psqlbinary for Postgres.app is inside the application bundle and you’ll have to add the appropriate directory to yourPATH. From the fine manual:So adjust your
PATHsetting in your zsh config files to include thedirectory inside your
Postgres.appbundle.