|
我在在使用perl时提示这样的错误:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GBK:zh_CN.GB2312:zh_CN:zh",
LC_ALL = "zh_CN.gbk",
LC_PAPER = "en_US",
LC_ADDRESS = "en_US",
LC_MONETARY = "en_US",
LC_SOURCED = "1",
LC_NUMERIC = "en_US",
LC_TELEPHONE = "en_US",
LC_MESSAGES = "zh_CN",
LC_IDENTIFICATION = "en_US",
LC_COLLATE = "zh_CN",
LC_MEASUREMENT = "en_US",
LC_CTYPE = "zh_CN",
LC_TIME = "zh_CN",
LC_NAME = "en_US",
LANG = "zh_CN.gbk"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
当我$locale 后
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
LANG=zh_CN.gbk
LC_CTYPE="zh_CN.gbk"
LC_NUMERIC="zh_CN.gbk"
LC_TIME="zh_CN.gbk"
LC_COLLATE="zh_CN.gbk"
LC_MONETARY="zh_CN.gbk"
LC_MESSAGES="zh_CN.gbk"
LC_PAPER="zh_CN.gbk"
LC_NAME="zh_CN.gbk"
LC_ADDRESS="zh_CN.gbk"
LC_TELEPHONE="zh_CN.gbk"
LC_MEASUREMENT="zh_CN.gbk"
LC_IDENTIFICATION="zh_CN.gbk"
LC_ALL=zh_CN.gbk
我自己定义那些变量失败后,运行localedrake 设置语言,重启后还是失败,请问还有别的什么方法来解决这个问题吗?或者说应该怎样正确的设置locale呢?
不知道还有别人遇到过类似的问题吗?请高手指教一下
谢谢! |
|