ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


perl: warning: Setting locale failed.
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 294
Votes: 0
Comments: 0
Posted: 28 Feb, 2008
by: Customer Service :: S.
* * * * *
Updated: 28 Feb, 2008
by: Customer Service :: S.

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: http://www.perl .com/doc/manual/html /pod/perllocale.html



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:

  • rpm -ihv --force glibc-common.rpm

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

    #Allow client to pass locale environment variables
    AcceptEnv LANG LC_*

TO

    #AcceptEnv LANG LC_*

so the default LC will be used.

Other articles in this Category
document How can I tranfser my data from one server to another?
document How can I block IP addresses?
document Linux Text Editors :: pico, vi, and emacs
document What ports do I need to open in my firewall?
document HTML Codes
document HowTo list all files installed by an RPM package
document How can I find the local path to a command line binary?
document I added more RAM Memory, yet the system shows the wrong amount
document HowTo :: manage Linux partitions
document HowTo :: check on the current version of CentOS installed on your server
document HowTo clone, image, and re-size your Hard Drive(s) and/or partition(s)
document HowTo :: remove the Pass Phrase set on an SSL key
document Is rebooting my Linux/FreeBSD server a useful practice?



RSS

Control Panel Licensing
cPanel Plesk Miva Merchant