登录CentOs6.5版本的Liunx系统,出现如下情况:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (zh_CN.UTF-8): No such file or directory
原因
: 在安装rar6.11版本时候,需要glibc-2.14依赖库,于是乎下载安装后,重新连接时就出现上诉的警告提示。
解决办法
1、查看glibc-2.14安装路径,本人安装在/usr/local/glibc-2.14
2、在/usr/local/glibc-2.14/lib下新建目录locale
3、拷贝 cp /usr/lib/locale/locale-archive /usr/local/glibc-2.14/lib/locale/locale-archive
4、重新连接,登录时是否弹出上诉问题