如何删除Perl区域设置警告

时间:2015-02-21 17:10:02

标签: linux perl ubuntu locale

运行perl脚本时有没有办法删除它?  我正在运行ubuntu。

perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LANGUAGE = (unset),
            LC_ALL = (unset),
            LC_PAPER = "no_NO.UTF-8",
            LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").

1 个答案:

答案 0 :(得分:1)

要删除消息,请运行此命令:

locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8

然后

dpkg-reconfigure locales

希望它会对你有所帮助。