How to fix a locale setting warning from Perl?

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

    Add missing locales to .bash_profile

    echo "export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8">>~/.bash_profile
    

    Then source your .bash_profile

    source ~/.bash_profile
    

提交回复
热议问题