How to put psql on the path when using Postgres.app on OS X?

前端 未结 10 1108
面向向阳花
面向向阳花 2021-02-05 05:01

I\'ve installed Postgres93 on my Mac. I can open the application, and \"Open psql\" through the app which opens up a command line interface with psql.

However, when I ty

10条回答
  •  无人及你
    2021-02-05 05:30

    ** Edited: to include a permanent fix, not just during your current session. **

    I had this same problem, and also found a clear answer lacking in the docs.

    To fix:

    1. Download the new app, and follow the instructions to move it to the Applications folder

    2. Add the new bundle to your path by typing the following in your Terminal (version number specific - mine is 9.4): PATH="/Applications/Postgres.app/Contents/Versions/9.4/bin:$PATH"

    3. To fix the issue on a permanent basis, run the same line but with export in front: export PATH="/Applications/Postgres.app/Contents/Versions/9.4/bin:$PATH"

提交回复
热议问题