I have been having a lot of trouble installing Postgresql on my computer.
I have a Rails app that I deploy to Heroku and want to use Postgresql on my local machine. Before I downloaded Postgres.app but never really used it and recently uninstalled it thinking it may be causing some problems.
I install Postgres and every time I run rake db:create:all, I get the following error:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
I've Googled and tried a bunch of things but have not been able to figure it out and thought I might finally have to get some personal help.
When running which psql I get:
/usr/local/bin/psql
I've tried uninstalling Postgres, uninstalling pg and re-installing it but nothing has been able to work.
Any insight here? Thank you.