fixing “perl: warning: Setting locale failed” error

for ubuntu 8.04LTS through 10.04LTS you can resolve the problem which creates the error message:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = "en_US:en",
 LC_ALL = (unset),
 LANG = "en_US"
 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

with the following two commands:

% sudo locale-gen fr_FR fr_FR.UTF-8 en_US en_US.UTF-8
% sudo dpkg-reconfigure locales

Leave a Reply

*
Powered by WordPress | Designed by Elegant Themes