error when run rails project

Hi everyone,
I'm new in rails. After I ran "gem update --system", I had a lot of
problems when running rails projects. I tried to fix from error to error
and now when I run rails project, it occurs error like this:

About your application’s environment
PGError in Rails/infoController#properties

could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.5432"?

Anyone who had had the same problem and solved it, please tell me how to
do with this problem.
Thank a lot

Em Lanh wrote:

Hi everyone,
I'm new in rails. After I ran "gem update --system", I had a lot of
problems when running rails projects. I tried to fix from error to error
and now when I run rails project, it occurs error like this:

About your application’s environment
PGError in Rails/infoController#properties

could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.5432"?

Anyone who had had the same problem and solved it, please tell me how to
do with this problem.
Thank a lot

Any suggestion please, I'm in hurry :frowning:
Many thanks