NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

perl: warning: Setting locale failed.

email messages are stuck in the queue and when I click "retry" I get this error:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "es_ES:es:en_GB:en",
LC_ALL = (unset),
LANG = "es_ES.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This means that your locale settings had LC_ALL set to ``En_US'' and LANG exists but has no value. Perl tried to believe you but could not. Instead, Perl gave up and fell back to the ``C'' locale, the default locale that is supposed to work no matter what. This usually means your locale settings were wrong, they mention locales your system has never heard of, or the locale installation in your system has problems (for example, some system files are broken or missing). For more info, go to: Perllocale



Locales inside VE
After creating a VE (e.g. using centos-4-i386-default template) running perl (any perl script), results in the warning message given above.

Resolution
Some of templates have removed locales inside, since locales take really much space (~20Mb) while not needed in most cases (except for the default "C" locale).

So in this example /usr/lib/locale/en_US/LC_TIME and other files are missing.

Fix 1
reinstall glibc-common package using the command:



Fix 2
Or disable overriding of LC_* variables in /etc/ssh/sshd_config file and change the following directive from:

TO

#AcceptEnv LANG LC_*

so the default LC will be used.

Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 1008
 
Votes: 0
 
Comments: 0
 
Posted: 28 Feb, 2008 by: Customer Service S.
Updated: 05 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
Article
RSS