开发者

Perl Locale warning Debian [closed]

开发者 https://www.devze.com 2023-02-05 05:05 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question
perl: warning: Setting locale failed.
perl: warning: Please check that your local开发者_JS百科e 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").

I keep getting this message. I am running Debian on a VPS. I've tried numerous solutions I've found through Google, none have helped. What do I do?


Try setting the locales directly this way, it worked for me on Ubuntu 10.04, just tailor the locales to your needs:

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

and then:

root@hostname:~# dpkg-reconfigure locales

Hope this can help!


Configuring Locales in Debian: http://people.debian.org/~schultmc/locales.html

0

精彩评论

暂无评论...
验证码 换一张
取 消