I was following the ruby on rails tutorial to run with postgres but when I try the \"rake db:create\" I get the following error:
could not connect to server:
I had the same issue. After unsuccessfully trying all the suggestions posted above, I finally quit out of terminal and restarted it.
This worked.