USING LOCALES (locale字符集问题)

在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

Posted by microsea


Trackback URL : 无法向此文章发送引用

Leave a comment
« Previous : 1 : ... 269 : 270 : 271 : 272 : 273 : 274 : 275 : 276 : 277 : ... 351 : Next »

BlogImage

Microsea,Fiona & Owen's family BLOG

- microsea

Statistics Graph

Calendar

«   Mar 2010   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

闽ICP备06003076号