Skip to content

Instantly share code, notes, and snippets.

@rietta
Created May 21, 2012 16:05
Show Gist options
  • Save rietta/2763045 to your computer and use it in GitHub Desktop.
Save rietta/2763045 to your computer and use it in GitHub Desktop.
Ubuntu Linux language locale error
When got:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "utf-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Fixed with:
sudo apt-get install language-pack-en-base
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
sudo dpkg-reconfigure locales
From http://bookmarks.honewatson.com/2009/05/30/perl-warning-please-check-that-your-locale-settings-ubuntu/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment