2012年7月10日 星期二

perl: warning: Falling back to the standard locale ("C").

最近Debian upgrade都會報警告,


perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_TW"
    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

而且也執行dpkg-reconfigure locales 設定中文,結果還是一樣.....
最後解決的方式,很簡單
只要下個指令
 export LC_ALL=C

Done, That's all. so easy

沒有留言:

張貼留言