How to fix a locale setting warning from Perl?

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

    It is simple fix in Ubuntu. You have to generate the Locales from scratch, running the following commands from the command line:

    sudo locale-gen en_US en_US.UTF-8
    sudo dpkg-reconfigure locales
    

    This should create the locales and then re-configure them.

提交回复
热议问题