dwyl / learn-postgresql

🐘 Learn how to use PostgreSQL and Structured Query Language (SQL) to store and query your relational data. 🔍
212 stars 23 forks source link

psql: command not found #56

Closed nelsonic closed 5 years ago

nelsonic commented 5 years ago

when attempting to run the psql commend on Mac (with Postgres Mac App installed) image

getting:

-bash: psql: command not found

Reading: https://stackoverflow.com/questions/20928734/how-to-put-psql-on-the-path-when-using-postgres-app-on-os-x

nelsonic commented 5 years ago

Run the following command:

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

Works: image

Relates to dwyl/phoenix-ecto-append-only-log-example/#before-you-start https://github.com/nelsonic/append-only-log-ex/issues/1