How to fix a locale setting warning from Perl?

后端 未结 30 1639
清酒与你
清酒与你 2020-11-27 08:36

When I run perl, I get the warning:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset         


        
30条回答
  •  感情败类
    2020-11-27 09:36

    All the previous answers are wrong. The message is clear - missing locale. The solution is to add the appropriate locale. You do that by editing the /etc/locale.gen file, remove the # sign in front of the locale being reported as missing and then issuing the command:

    $ sudo locale-gen
    

    This will actually generate the locales specified in /etc/locale.gen and therefore the message will not be shown.

提交回复
热议问题