USING LOCALES (locale字符集问题)
- Posted at April 10th, 2006 13:08
- Filed under 资讯火药库/LINUX/UNIX
在resin启动停止或执行perl -v时会出现如下错误提示:
[CODE]perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").[/CODE]
是由于本地字符集LANG和LC_ALL设置的问题,解决方法:
export LC_ALL=en_US.ISO8859-1
export LANG=en_US.ISO8859-1
执行或将其加入/etc/profile,并修改/etc/sysconfig/i18n文件.
参考文档: http://perl.active-venture.com/pod/perllocale-using.html
[CODE]perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").[/CODE]
是由于本地字符集LANG和LC_ALL设置的问题,解决方法:
export LC_ALL=en_US.ISO8859-1
export LANG=en_US.ISO8859-1
执行或将其加入/etc/profile,并修改/etc/sysconfig/i18n文件.
参考文档: http://perl.active-venture.com/pod/perllocale-using.html
Posted by microsea
- Response
- No Trackback , No Comment
Trackback URL : 无法向此文章发送引用
