How to fix a locale setting warning from Perl?

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

    You need to configure locale appropriately in /etc/default/locale, logout, login, and then run the regular commands

    root@host:~# echo -e 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale
    root@host:~# exit
    local-user@local:~$ ssh root@host
    root@host:~# locale-gen en_US.UTF-8
    root@host:~# dpkg-reconfigure locales
    

提交回复
热议问题