0%

解决Please check that your locale settings问题

问题描述:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = "en_US:en",

LC_ALL = (unset),

LC_CTYPE = "zh_CN.UTF-8",

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = "en_US:en",

LC_ALL = (unset),

LC_CTYPE = "zh_CN.UTF-8",

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

解决方案:

  • 方案1

编辑 .bashrc

1
vi /root/.bashrc

在最底部加上

1
export LC_ALL=C
  • 方案2

直接运行

1
echo "export LC_ALL=C" >> /root/.bashrc

然后执行

1
source /root/.bashrc

Welcome to my other publishing channels