哪一天 哪一天 我有吃有穿有住有钱 不再流浪 流浪
« »
February 25, 2010程序设计

383 views

[Ubuntu]perl: warning: Please check that your locale settings

From: http://bookmarks.honewatson.com/2009/05/30/perl-warning-please-check-that-your-locale-settings-ubuntu/

The fix (change to whatever language or version of english you’re using eg en_GB):

apt-get install language-pack-en-base


export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

If you get the following warning below for apt-get or dpkg in ubuntu:

perl: warning: Please check that your locale settings ubuntu

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_US.UTF-8″,
LC_ALL = “en_US.UTF-8″,
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

相关日志

日志信息 »

该日志于2010-02-25 15:40由 admin 发表在程序设计分类下, 通告目前不可用,你可以至底部留下评论。

主机推荐 »

赞助商链接 »

没有评论

发表评论 »

返回顶部