|
 |
栏目导栏 |
|
| |
|
|
|
|
 |
资料搜索 |
|
| |
|
|
|
|
 |
热门文章 |
|
| |
|
|
|
|
 |
最新文章 |
|
| |
|
|
|
| |
| |
|
|
|
|
在debian下安装程序时,有时候会因为本地设置没有设置好,Per会给出下面的错误提示:xYxLinux联盟 xYxLinux联盟
perl: warning: Setting locale failed.xYxLinux联盟 perl: warning: Please check that your locale settings:xYxLinux联盟 LANGUAGE = (unset),xYxLinux联盟 LC_ALL = (unset),xYxLinux联盟 LANG = "zh_CN.UTF-8"xYxLinux联盟 are supported and installed on your system.xYxLinux联盟 perl: warning: Falling back to the standard locale ("C").xYxLinux联盟 locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟
| xYxLinux联盟 要解决这个问题,其实很简单,只要执行下面几条命令,一切都会OK:xYxLinux联盟 xYxLinux联盟
debian:~# apt-get install localesxYxLinux联盟 debian:~# dpkg-reconfigure localesxYxLinux联盟 debian:~# localexYxLinux联盟
| xYxLinux联盟 下面是我执行这几条命令的显示(粗体部分是命令行):xYxLinux联盟 xYxLinux联盟
debian:~# apt-get install localesxYxLinux联盟 Reading package lists... DonexYxLinux联盟 Building dependency tree... DonexYxLinux联盟 The following NEW packages will be installed:xYxLinux联盟 localesxYxLinux联盟 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.xYxLinux联盟 Need to get 3967kB of archives.xYxLinux联盟 After unpacking 9612kB of additional disk space will be used.xYxLinux联盟 Get:1 http://debian.cn99.com stable/main locales 2.3.6.ds1-13etch2 [3967kB]xYxLinux联盟 Fetched 3967kB in 1s (3106kB/s) xYxLinux联盟 perl: warning: Setting locale failed.xYxLinux联盟 perl: warning: Please check that your locale settings:xYxLinux联盟 LANGUAGE = (unset),xYxLinux联盟 LC_ALL = (unset),xYxLinux联盟 LANG = "zh_CN.UTF-8"xYxLinux联盟 are supported and installed on your system.xYxLinux联盟 perl: warning: Falling back to the standard locale ("C").xYxLinux联盟 locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟 Preconfiguring packages ...xYxLinux联盟 Selecting previously deselected package locales.xYxLinux联盟 (Reading database ... 9213 files and directories currently installed.)xYxLinux联盟 Unpacking locales (from .../locales_2.3.6.ds1-13etch2_all.deb) ...xYxLinux联盟 Setting up locales (2.3.6.ds1-13etch2) ...xYxLinux联盟 perl: warning: Setting locale failed.xYxLinux联盟 perl: warning: Please check that your locale settings:xYxLinux联盟 LANGUAGE = (unset),xYxLinux联盟 LC_ALL = (unset),xYxLinux联盟 LANG = "zh_CN.UTF-8"xYxLinux联盟 are supported and installed on your system.xYxLinux联盟 perl: warning: Falling back to the standard locale ("C").xYxLinux联盟 locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟 debian:~# dpkg-reconfigure localesxYxLinux联盟 perl: warning: Setting locale failed.xYxLinux联盟 perl: warning: Please check that your locale settings:xYxLinux联盟 LANGUAGE = (unset),xYxLinux联盟 LC_ALL = (unset),xYxLinux联盟 LANG = "zh_CN.UTF-8"xYxLinux联盟 are supported and installed on your system.xYxLinux联盟 perl: warning: Falling back to the standard locale ("C").xYxLinux联盟 locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟 locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟 /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directoryxYxLinux联盟 /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directoryxYxLinux联盟 /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directoryxYxLinux联盟 Generating locales (this might take a while)...xYxLinux联盟 en_US.ISO-8859-1... donexYxLinux联盟 en_US.ISO-8859-15... donexYxLinux联盟 en_US.UTF-8... donexYxLinux联盟 zh_CN.GB2312... donexYxLinux联盟 zh_CN.GB18030... donexYxLinux联盟 zh_CN.GBK... donexYxLinux联盟 zh_CN.UTF-8... donexYxLinux联盟 zh_HK.BIG5-HKSCS... donexYxLinux联盟 zh_HK.UTF-8... donexYxLinux联盟 zh_SG.GB2312... donexYxLinux联盟 zh_SG.GBK... donexYxLinux联盟 zh_SG.UTF-8... donexYxLinux联盟 zh_TW.BIG5... donexYxLinux联盟 zh_TW.EUC-TW... donexYxLinux联盟 zh_TW.UTF-8... donexYxLinux联盟 zu_ZA.ISO-8859-1... donexYxLinux联盟 zu_ZA.UTF-8... donexYxLinux联盟 Generation complete.xYxLinux联盟 debian:~# localexYxLinux联盟 LANG=zh_CN.UTF-8xYxLinux联盟 LC_CTYPE="zh_CN.UTF-8"xYxLinux联盟 LC_NUMERIC="zh_CN.UTF-8"xYxLinux联盟 LC_TIME="zh_CN.UTF-8"xYxLinux联盟 LC_COLLATE="zh_CN.UTF-8"xYxLinux联盟 LC_MONETARY="zh_CN.UTF-8"xYxLinux联盟 LC_MESSAGES="zh_CN.UTF-8"xYxLinux联盟 LC_PAPER="zh_CN.UTF-8"xYxLinux联盟 LC_NAME="zh_CN.UTF-8"xYxLinux联盟 LC_ADDRESS="zh_CN.UTF-8"xYxLinux联盟 LC_TELEPHONE="zh_CN.UTF-8"xYxLinux联盟 LC_MEASUREMENT="zh_CN.UTF-8"xYxLinux联盟 LC_IDENTIFICATION="zh_CN.UTF-8"xYxLinux联盟 LC_ALL=xYxLinux联盟 debian:~# xYxLinux联盟
| xYxLinux联盟 在执行第二条命令时,按照提示,选择你想要的local就OK了。xYxLinux联盟 第三条命令是用来查看都安装了哪些local。xYxLinux联盟
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论 |
|
|
|
|
|