Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionperl: 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
精彩评论