Fixing "perl: warning: Setting locale failed."解決
錯誤提示:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_PAPER = "en_US",
LC_ADDRESS = "en_US",
LC_MONETARY = "en_US",
LC_NUMERIC = "en_US",
LC_TELEPHONE = "en_US",
LC_IDENTIFICATION = "en_US",
LC_MEASUREMENT = "en_US",
LC_TIME = "en_US",
LC_NAME = "en_US",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
解決辦法:
apt-get install language-pack-en-base
/usr/sbin/locale-gen en_US.UTF-8
/usr/sbin/update-locale LANG =en_US.UTF-8
最後:reboot