centos7.2 perl: warning: Setting locale failed.解决办法

本文共有848个字。 # / a

刚将自己系统切换到英文状态,在使用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

再次进行编译时没有错误提示了。

版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。本站微信公众号:7TEC,敬请关注!

暂时无法评论哦~

暂无评论