2

我正在尝试从终端运行 postgres。我错过了什么?

$psql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
psql: 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"?
4

1 回答 1

4

看起来您使用的pg_wrapper是 Ubuntu 或 Debian 之类的系统,并且您的语言环境设置混乱了。这与 PostgreSQL 无关,这是系统配置问题。Perl 只是在抱怨它。

不争论就跑perl,你会看到同样的抱怨。

假设您使用的是 Ubuntu,因为您没有另外说,请参阅:

于 2012-09-16T06:58:04.960 回答