Linux - CentOS 7 - How to install_upgrade ZSH 5.8

ZSH 5.8 on CentOS 7

1
2
3
4
wget https://freefr.dl.sourceforge.net/project/zsh/zsh/5.8/zsh-5.8.tar.xz
yum install wget gcc autoconf ncurses-devel -y
tar -xvf zsh-5.8.tar.xz
cd zsh-5.8

1
2
./Util/preconfig
./configure && make && make test && make install

1
2
echo /usr/local/bin/zsh | sudo tee -a /etc/shells
chsh -s /usr/local/bin/zsh

LC_CTYPE: cannot change locale (UTF-8): No such file or directory Fix :

1
vi /etc/environment

add these lines :

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