perl: warning: Setting locale Failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset),LC_ALL = (unset),LANG = "en_CA.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
我不断得到这个消息.我在VPS上运行Debian.我已经尝试过许多通过Google发现的解决方案,没有一个帮助.我该怎么办?
解决方法
尝试以这种方式直接设置语言环境,它在Ubuntu 10.04上为我工作,只需根据您的需要定制语言环境:
root@hostname:~# export LANGUAGE=en_US.UTF-8 root@hostname:~# export LANG=en_US.UTF-8 root@hostname:~# export LC_ALL=en_US.UTF-8 root@hostname:~# locale-gen en_US.UTF-8
接着:
root@hostname:~# dpkg-reconfigure locales
希望这可以帮助!