Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

centos zsh can only be upgraded to 5.0.2. #1355

Open
chandrahas-abburi opened this issue Aug 19, 2019 · 15 comments
Open

centos zsh can only be upgraded to 5.0.2. #1355

chandrahas-abburi opened this issue Aug 19, 2019 · 15 comments

Comments

@chandrahas-abburi
Copy link

chandrahas-abburi commented Aug 19, 2019

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
Copy link

romkatv commented Aug 19, 2019

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
Copy link
Author

chandrahas-abburi commented Aug 19, 2019

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
Copy link

romkatv commented Aug 29, 2019

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
Copy link

pingsutw commented Dec 2, 2019

@romkatv awesome, it works for me

@siva3060
Copy link

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
Copy link

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
Copy link

romkatv commented Jan 29, 2020

@siva3060 What?

@siva3060
Copy link

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
Copy link

romkatv commented Jan 29, 2020

Aww, that sucks ☹️ Sorry to hear it didn't work for you.

@siva3060
Copy link

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
Copy link

romkatv commented Jan 29, 2020

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
Copy link

siva3060 commented Jan 29, 2020

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

@romkatv
Copy link

romkatv commented Jan 29, 2020

I feel ya.

@siva3060
Copy link

Tried to install with rpm ending with dependiency erros

@romkatv
Copy link

romkatv commented Jan 29, 2020

Tried to install with rpm ending with dependiency erros

Shiiiiit, I hate those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants