0

I've uninstalled and installed postgres and tried to follow the following The local psql command could not be located

but still can't get heroku pg:psql to work. I suspect that it's pointed to the wrong path but not sure how to go about fixing it.

When I run locate psql | grep /bin I get this: WARNING: The locate database (/var/db/locate.database) does not exist.

Joseph Lee
  • 47
  • 7

1 Answers1

1

You want to set path for your psql command

set PATH=%PATH%;C:\Program Files\PostgreSQL\9.6\bin
wedo
  • 129
  • 1
  • 11
  • Thanks! I knew the path was off but another search led me here http://yizeng.me/2015/02/09/install-and-setup-postgresql-for-ruby-on-rails-on-mac-os/ and I had to open ~/.bash_profile and add PATH=$PATH:/Library/PostgreSQL/9.6/bin – Joseph Lee Jun 29 '17 at 17:36