psql: command not found Mac

后端 未结 11 902
清酒与你
清酒与你 2021-01-29 22:16

I installed PostgreSQL via the graphical install on http://www.postgresql.org/download/macosx/

I see it in my applications and also have the psql terminal in my applicat

11条回答
  •  無奈伤痛
    2021-01-29 22:23

    If Postgres was downloaded and installed, running this should fix the issue:

    sudo mkdir -p /etc/paths.d &&
    echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee 
    /etc/paths.d/postgresapp
    

    Restart the terminal and you'll be able to use psql command.

    Ref: https://postgresapp.com/documentation/cli-tools.html

提交回复
热议问题