Search This Blog

Thursday, January 20, 2011

[Ubuntu] perl: warning: Setting locale failed.

Hi,

I have faced this problem many more times on either client desktops or when I have to configure some ubuntu server. So I had to search for the solution every time I face this annoying thing again and again.
Just thought of writing about it, and so people(like me, who merely remember what they did to sort out the problem) won't face it again and again.


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

So, here is what I did to solve it

ubuntu@localhost:~$ sudo locale-gen en_US.UTF-8
[sudo] password for ubuntu:
Generating locales...
  en_US.UTF-8... done
Generation complete.
ubuntu@localhost:~$ sudo dpkg-reconfigure locales
Generating locales...
  en_US.UTF-8... up-to-date
Generation complete.
ubuntu@localhost:~$

..............Done!!!

No comments:

Post a Comment