Mac iTerm2 login CentOS prompt cannot change locale (UTF-8): the cause and solution of No such file or directory
This article mainly explains the "Mac iTerm2 login CentOS hints cannot change locale (UTF-8): No such file or directory reasons and solutions", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Mac iTerm2 login CentOS hints cannot change locale (UTF-8): No such file or directory reasons and solutions" bar!
Mac iTerm2 login CentOS prompt warning:setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[error reason]: there is no utf-8 language family (no language _ country name prefix), and LC_ALL does not have a set value.
Server-side solution:
On the remote system, add the following two lines to / etc/environment and log in again.
LANG=en_US.utf-8LC_ALL=en_US.utf-8
Mac terminal solution:
Edit the ~ / .bashrc or ~ / .zshrc file and add
Export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 thank you for your reading. The above is the content of "Mac iTerm2 login CentOS prompt cannot change locale (UTF-8): the reason and solution of No such file or directory". After the study of this article, I believe you have a deeper understanding of the problem that Mac iTerm2 login CentOS prompts cannot change locale (UTF-8): No such file or directory. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!