Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl Locale warning Debian [closed]

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").

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?

like image 467
jimbo Avatar asked Jan 19 '11 06:01

jimbo


People also ask

How do I change locale in Debian?

Get root and type dpkg-reconfigure locales and select the locale(s) you want to generate. At the end, you'll be asked which one should be the default. If you have users who access the system through ssh, it is recommended that you choose None as your default locale. This changes /etc/default/locale and /etc/locale.


1 Answers

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!

like image 129
Darme Avatar answered Sep 21 '22 00:09

Darme