解决Cannot set LC_CTYPE to default locale: No such file or directory
2012-05-16 15:58
716 查看
安装了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
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
相关文章推荐
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- linux出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- locale: Cannot set LC_CTYPE to default locale: No such file or directory
- Cannot set LC_CTYPE to default locale: No such file or directory
- Ubuntu locale Cannot set LC_CTYPE to default locale: No such file or directory
- Linux下locale: Cannot set LC_CTYPE to default locale: No such file or directory警告
- debian 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
- linux(debian) cannot set LC* to default locale, No such file or directory
- Fix Error - Locale: Cannot Set LC_ALL to default locale: No such file or directory
- Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法
- Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8): No such file or directory
- bug宝典linux篇 LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory