Fixing "perl: warning: Setting locale failed."解决

前端之家收集整理的这篇文章主要介绍了Fixing "perl: warning: Setting locale failed."解决前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
文章来源:http://www.2cto.com/os/201303/198073.html

亲测可用!

 
perl: warning: Setting locale Failed
perl: warning: Please check that your locale settings: 
 LANGUAGE = "en_US:en", 
 LC_ALL = (unset),51); font-family:宋体; font-size:14px; line-height:28px">  LC_PAPER = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_ADDRESS = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_MONETARY = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_NUMERIC = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_TELEPHONE = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_IDENTIFICATION = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_MEASUREMENT = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_TIME = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  LC_NAME = "en_US",51); font-family:宋体; font-size:14px; line-height:28px">  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

猜你在找的Perl相关文章