To run Apache AGE, I built postgres 12 from source with the --debug flag enabled and followed the instructions given. Upon it being succesfully built (in ubuntu on wsl2), I tried running it with the psql command, but it kept giving an error.
I tried running
psql -U postgres
but that gave me the following error
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?
However, if I run
psql -h localhost -p 5432 -U postgres
I am able to connect to the server. I've googled for hours but I am not sure what the problem is.