Perl is error: perl: warning: Setting locale failed.

That is to say the system could not recognize the Chinese Language version of perl.

We should download the Chinese version of it.

Here is the reliable method to solve this problem:

https://blog.csdn.net/permike/article/details/54576417

  1. Test with following command:
perl -e exit

Enter and the error output:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
  1. Install Chinese language in the system
apt-get install language-pack-zh-hans
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容