刚将自己系统切换到英文状态,在使用item链接远程ssh编译文件时,报以下错误,记录一下。
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.utf8"
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 = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
解决办法
vim /etc/profile
#在最后一行添加
export LC_ALL=C
:wq!
source /etc/profile
再次进行编译时没有错误提示了。
暂时无法评论哦~
暂无评论