Difference between revisions of "Setting locale failed"

From Organic Design wiki
(fix for local problem)
 
(Change source-code blocks to standard format)
 
Line 1: Line 1:
 
I've been getting this annoying warning on a number of servers for months now:
 
I've been getting this annoying warning on a number of servers for months now:
{{code|<pre>
+
<source>
 
perl: warning: Setting locale failed.
 
perl: warning: Setting locale failed.
 
perl: warning: Please check that your locale settings:
 
perl: warning: Please check that your locale settings:
Line 8: Line 8:
 
     are supported and installed on your system.
 
     are supported and installed on your system.
 
perl: warning: Falling back to the standard locale ("C").
 
perl: warning: Falling back to the standard locale ("C").
</pre>}}
+
</source>
  
  
 
I've have tried reconfiguring/reinstalling ''locale'', reconfiguring ''tzdata'' and a number of other things but to no avail. Finally I did the following which fixed it:
 
I've have tried reconfiguring/reinstalling ''locale'', reconfiguring ''tzdata'' and a number of other things but to no avail. Finally I did the following which fixed it:
{{code|<pre>
+
<source>
 
locale-gen en_NZ.UTF-8
 
locale-gen en_NZ.UTF-8
</pre>}}
+
</source>
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 18:11, 22 May 2015

I've been getting this annoying warning on a number of servers for months now:

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


I've have tried reconfiguring/reinstalling locale, reconfiguring tzdata and a number of other things but to no avail. Finally I did the following which fixed it:

locale-gen en_NZ.UTF-8