Postgres problem

I have the same problem when I when I try to connect to database postgres, I get: psql: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

Also, when I tried to run the 'sudo apt-get install python-dev python-pip' I get sudo: apt-get: command not found

Any suggestions?

Sorry You must be a logged in, registered user to answer a question.

Answers

apt-get should be there no matter what, as it's included on all Debian-devired Linuxes (AFAIK). Perhaps do vagrant destroy and start over? Sounds like something didn't build correctly on your VM.

thanks for the advice Kenneth. I sorted out the problem now after going back and watching the video more closely. Im not sure if I was just being dumb but at the point where you call the command: sudo apt-get install python-dev python-pip, I didn't realise that you needed to be logged in to your VM with ssh. Because the instruction before that is: exit ssh, vagrant halt, vagrant up. Anyways, I completed lesson 1 successfully and very much looking forward to diving into lesson 2. I really like the course, keep up the good work.
green-anorak on

Sorry. The 'same' problem I referred to is the question on Postgres posted by Koji. But I am running Mac os 10.7.5