解决Cannot set LC_CTYPE to default locale: No such file or directory

来源:互联网 发布:linux下编程工具 编辑:程序博客网 时间:2024/05/23 02:05

安装了suse linux10后,发现man不能用

 linux-qtg7:~ # man
man: can't set the locale; make sure $LC_* and $LANG are correct

 

查看本地语言设置:

linux-qtg7:~ # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=POSIX
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"

发现有上面错误。提示显示 c 语言类型没地方设置,经过查找,发现与c语言有类的glibc没有安装。


解决方法:

安装本地包:

glibc-locale

 

问题解决。

 

 

ubuntu下:执行下面命令重新配置语言环境

#local-gen zh_CN

 

原创粉丝点击