licess 发表于 2012-4-25 20:18:55

perl: warning: Please check that your locale settings 错误解决方法

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:

LANGUAGE = "en_US:en",

LC_ALL = (unset),

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

apt-get 安装软件时报如上错误
解决方法:编辑 /etc/profile 或 /root/.bashrc
加上
LC_CTYPE="en_US.UTF-8"
export LC_CTYPE
LC_MESSAGES="en_US.UTF-8"
export LC_MESSAGES
LC_ALL="en_US.UTF-8"
export LC_ALL

再运行一次看看,错误没了
页: [1]
查看完整版本: perl: warning: Please check that your locale settings 错误解决方法