Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 949 forks source link

centos zsh can only be upgraded to 5.0.2. #1355

Open chandrahas-abburi opened 4 years ago

chandrahas-abburi commented 4 years ago

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

romkatv commented 4 years ago

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?

chandrahas-abburi commented 4 years ago

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.

romkatv commented 4 years ago

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
pingsutw commented 4 years ago

@romkatv awesome, it works for me

siva3060 commented 4 years ago

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 commented 4 years ago

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

romkatv commented 4 years ago

@siva3060 What?

siva3060 commented 4 years ago

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

romkatv commented 4 years ago

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

siva3060 commented 4 years ago

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

romkatv commented 4 years ago

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.

siva3060 commented 4 years ago

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

romkatv commented 4 years ago

I feel ya.

siva3060 commented 4 years ago

Tried to install with rpm ending with dependiency erros

romkatv commented 4 years ago

Tried to install with rpm ending with dependiency erros

Shiiiiit, I hate those.