Your client (psql or whatever) is configured to look for unix sockets in
/var/run but your server is using /tmp. This suggests that your psql is an
old version rather than whatever you compiled - check your PATH.
You can use the path as a hostname:
psql -h /tmp -p 5432 ...