|Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
|PERL can't set the locale; make sure $LC_* and $LANG are correct
|Page 1 of 1|
|Author:||designeru [ Thu May 20, 2010 12:40 pm ]|
|Post subject:||PERL can't set the locale; make sure $LC_* and $LANG are correct|
If you wish to fix the following errors (on debian google for other distributions)
can't set the locale; make sure $LC_* and $LANG are correct
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
apt-get install belocs-locales-bin belocs-locales-data
then add to /etc/locale.gen the locales that you're ussing. I have the following:
And finaly do this:
The error should be fixed now. No reboot required.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group