powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

centos zsh can only be upgraded to 5.0.2.

Open chandrahas-abburi opened this issue 6 years ago • 15 comments

zsh version -zsh 5.0.2 (x86_64-redhat-linux-gnu) powerlevel 9k gives many git errors Need a workaround or support for centos 7

Example of errors:

  1. git untracked files makes vcs display not work 2)vi-git-stash:2: unknown file attribute

error 2 arised on solving of error 1

chandrahas-abburi avatar Aug 19 '19 06:08 chandrahas-abburi

centos zsh can only be upgraded to 5.0.2

This works for me:

sudo yum update -y
sudo yum install -y git make ncurses-devel gcc autoconf man yodl
git clone -b zsh-5.7.1 https://github.com/zsh-users/zsh.git /tmp/zsh
cd /tmp/zsh
./Util/preconfig
./configure
sudo make -j 20 install

/usr/local/bin/zsh --version prints zsh 5.7.1 (x86_64-pc-linux-gnu).

Does it work for you?

romkatv avatar Aug 19 '19 09:08 romkatv

No, it doesnt. Thank you @romkatv for the quick response. i think i need to make oh my zsh use the 5.7.1 version

echo $ZSH_VERSION still gives 5.0.2 zsh -- version gives 5.7.1

if I type zsh in the command line then the error vanishes.

chandrahas-abburi avatar Aug 19 '19 10:08 chandrahas-abburi

No, it doesnt.

Could you post the failing command and its output?

Thank you @romkatv for the quick response. i think i need to make oh my zsh use the 5.7.1 version

echo $ZSH_VERSION still gives 5.0.2

This makes sense because you still have /bin/zsh as your user shell. /bin/zsh --version is 5.0.2 while /usr/local/bin/zsh --version is 5.7.1.

zsh -- version gives 5.7.1

Where did zsh version 5.7.1 come from? Did the build command actually succeed?

if I type zsh in the command line then the error vanishes.

You can change your default shell to the new version by typing these commands:

sudo grep -qF =zsh /etc/shells || sudo tee -a /etc/shells <<<=zsh
chsh -s =zsh

romkatv avatar Aug 29 '19 13:08 romkatv

@romkatv awesome, it works for me

pingsutw avatar Dec 02 '19 21:12 pingsutw

centos zsh can only be upgraded to 5.0.2

This works for me:

sudo yum update -y
sudo yum install -y git make ncurses-devel gcc autoconf man
git clone -b zsh-5.7.1 https://github.com/zsh-users/zsh.git /tmp/zsh
cd /tmp/zsh
./Util/preconfig
./configure
sudo make -j 20 install.bin install.modules install.fns

/usr/local/bin/zsh --version prints zsh 5.7.1 (x86_64-pc-linux-gnu).

Does it work for you?

siva3060 avatar Jan 29 '20 14:01 siva3060

I have followed the above procedure able to install the zshell how ever when i try to sourece the .bashrc file it throws error of saying module not installed of zsh was the error it is throwing

siva3060 avatar Jan 29 '20 14:01 siva3060

@siva3060 What?

romkatv avatar Jan 29 '20 14:01 romkatv

i have configure the zsh to my rhel machine but after downloading the on-my-zsh and reloading the zshrc script using source commad it throws errors saying modules of zsh not installed

siva3060 avatar Jan 29 '20 14:01 siva3060

Aww, that sucks :frowning_face: Sorry to hear it didn't work for you.

romkatv avatar Jan 29 '20 14:01 romkatv

is there any possible way to fix this cus i have been on this since last night i dont see any resource thank you

siva3060 avatar Jan 29 '20 14:01 siva3060

There must be some way but I don't know what it might be, unfortunately. You might have better luck asking for help from people who have something to do with the technologies you are using: rhel, zsh and oh-my-zsh, if I understand correctly.

romkatv avatar Jan 29 '20 14:01 romkatv

yes, yum manager has zshell 5.0.2 and havent received any update later thath

siva3060 avatar Jan 29 '20 14:01 siva3060

I feel ya.

romkatv avatar Jan 29 '20 14:01 romkatv

Tried to install with rpm ending with dependiency erros

siva3060 avatar Jan 29 '20 14:01 siva3060

Tried to install with rpm ending with dependiency erros

Shiiiiit, I hate those.

romkatv avatar Jan 29 '20 14:01 romkatv