Home > varie > perl: warning: Please check that your locale settings ubuntu

perl: warning: Please check that your locale settings ubuntu

aprile 16, 2012

That’s the full ERROR:

perl: warning: Please check that your locale settings ubuntu

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_US.UTF-8″,
LC_ALL = “en_US.UTF-8″,
LANG = “en_US.UTF-8″
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

howto fix ?

The fix (change to whatever language or version of english you’re using eg en_GB):

sudo aptitude reinstall language-pack-en-base

Then if you use ubuntu/debian:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

Categorie:varie