Mac*_*iej 5 osx ssh perl locale
我买了一个VPS,Centos 7。
但是,我能够理解 SSH 发生了什么并连接到我的 WHM。
连接后,我得到一个错误列表,有这样的事情:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Run Code Online (Sandbox Code Playgroud)
我的系统是最新的 MacOS Mojave。
更新:终于成功了:) 在我系统的终端中输入这两个命令就足够了。
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Run Code Online (Sandbox Code Playgroud)
服务器来自美国,所以我认为这就是我必须设置语言的原因。现在的问题是,如果我关闭终端并再次打开它,我必须再次执行导出命令。但它已经比以前更好了,我正在进一步研究...... :)
更新 2:
我不得不将这两行添加到文件 ~/.bash_profile 中,现在即使在终端重新启动后一切正常。
在 Fedora、RHEL、Redhat、CentOS 上我使用过
sudo dnf install langpacks-de
Run Code Online (Sandbox Code Playgroud)
适用于德语 (de) 语言包。注销并重新登录,它成功了。
搜索其他语言包
dnf search langpacks-
Run Code Online (Sandbox Code Playgroud)
列出我使用的可用区域设置
localectl list-locales
Run Code Online (Sandbox Code Playgroud)
并设置一个新的
sudo localectl set-locale de_DE.utf8
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8906 次 |
最近记录: |