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

前端 未结 10 1138
面向向阳花
面向向阳花 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条回答
  •  旧时难觅i
    2021-02-05 05:28

    I'm using catalina 10.15.3 and I had the same issue after installing psql using homebrew. Then I noticed, homebrew mentioned

    ==> libpq libpq is keg-only, which means it was not symlinked into /usr/local, because conflicts with postgres formula.

    If you need to have libpq first in your PATH run:

    echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile

    So, I ran 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile and psql was added to my path

提交回复
热议问题