Got the dreaded, only-macOs documented "No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432" but you are using wither Mint or Ubuntu?
Here's how to fix it.
-
verify the contents of /etc/postgresql/9.5/main/pg_hba.conf
-
if the file is empty, add this conf