Mac iTerm2登陆CentOS提示warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

【报错原因】:没有utf-8这个语系(没添加语言_国名前缀),LC_ALL又没设定值。

在 /etc/environment 加入以下两行,重新登陆即可。

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

原文地址:https://www.cnblogs.com/imzye/p/8503576.html

时间: 2024-10-13 23:18:51

Mac iTerm2登陆CentOS提示warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory的相关文章

CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)

centos5.x 登陆显示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_MESSAG

终端SSH远程连接CentOS报错:-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

终端SSH远程连接CentOS时,报以下错误提示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 在centos服务器上 sudo vim /etc/locale.conf 内容如下: LC_ALL=en_US.utf8 LC_CTYPE=en_US.utf8 LANG=en_US.utf8 重新连接就正常了. 原文地址:https://www.cnblog

warning: setlocale: LC_CTYPE: cannot change locale

setlocale warning 使用mac上面iterm2一段时间了,登陆服务器老是报如下warning warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 然后yum 安装的时候也会报LC_CTYPE环境变量的问题.于是抽空搜索了一下,找到了如下文章http://www.cyberciti.biz/faq/os-x-terminal-bash-warning-setloc

-bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8)

最近发现MDT推出去的系统的有不同问题,其问题就不说了,主要是策略权限被域继承了.比如我们手动安装的很多东东都是未配置壮态,推的就默认为安全壮态了,今天细找了一下,原来把这个关了就可以了. -bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8)

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) centos7

今天登陆centos 7 遇到一个 警告 /bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) bash : warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) 只要执行 : yum -y install kde-l10n-Chinese telnet && yum -y reinstall glibc-common #基本就能

LC_CTYPE: cannot change locale (en_US.

升级glibc库后,使用SecureCRT登录linux,提示: ast login: Mon Feb 20 02:03:21 2017 from 192.168.4.187 -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory -bash: warning: setlocale: LC_COLLATE: cannot change locale (en

登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c

Xshell登录linux系统时会出现报错:-bash: warning: setlocale: LC_CTYPE: cannot change locale (latin1): No such file or directory-bash: warning: setlocale: LC_COLLATE: cannot change locale (latin1): No such file or directory-bash: warning: setlocale: LC_MESSAGES:

logcat 提示 Unable to open log device '/dev/log/main': No such file or directory

解决办法: Open: /system/etc/init.d/××× (not the same file on different ROMs, find the right file) Find the line that says: rm /dev/log/main Change the line to: # rm /dev/log/main (comments out the line, rm = remove, in case you were wondering) Save and r

10.29 工作笔记 ndk编译C++,提示找不到头文件(ndk-build error: string: No such file or directory)

ndk编译C++.提示找不到头文件(ndk-build error: string: No such file or directory) 被这个问题弄得愁眉苦脸啊.心想为啥一个string都找不到呢..于是百度到了. . . 遇到这个问题,就在所在的文件夹 Application.mk 文件里.加入: APP_STL := gnustl_static 就能够找到标准库了! 最后知道真相的我.眼泪掉下来啊!