bash - Can't Run psql From Command Line After Adding To Path -
i had postgres installed on osx. postgres.app 9.5. wanted pgadmin uninstalled thinking way. realized needed dependencies , pgadmin allow me gui work them. after had pgadmin installed installed postgres.app again. added bin path pgadmin preferences.
at point when start shell postgres.app \list db , can see ones have made.
then run pgadmin , can see same databases inside gui.
but cant run psql command line.
not in terminal not in iterm
when paste terminal can start active shell,
'/applications/postgres.app/contents/versions/9.6/bin'/psql -p5432 -u postgres but when type in terminal or iterm permission denied,
/applications/postgres.app/contents/versions/9.6/bin psql zsh: permission denied: /applications/postgres.app/contents/versions/9.6/bin psql when run sudo command not found.
i added ~/.bash_profile
export path="/applications/postgres.app/contents/versions/9.6/bin:$path" then ran,
source ~/.bashrc i quit out of terminal , iterm when run psql still command not found.
any here great. want add psql path can things like,
psql --version etc.
Comments
Post a Comment