How to fix a locale setting warning from Perl?

后端 未结 30 1632
清酒与你
清酒与你 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:37

    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_ALL to default locale: No such file or directory
    

    Solution:

    Try this (uk_UA.UTF-8 is my current locale. Write your locale, for example en_US.UTF-8 !)

    sudo locale-gen uk_UA.UTF-8
    

    and this.

    sudo dpkg-reconfigure locales
    

提交回复
热议问题