./configure
,报错git
No terminal handling library was found on your system. This is probably a library called 'curses' or 'ncurses'. You may need to install a package called 'curses-devel' or 'ncurses-devel' on your system.
找到解决方案,使用'libncurses5-dev'替代'ncurses-devel'github
apt-get install libncurses5-dev
安装shell
./configure make make install
安装'oh-my-zsh', 'install.sh'被下载到当前目录es5
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh sh install.sh
上一步报错发现没装'git',先装上再运行就没有问题了code
apt-get install git
想把 zsh 做为默认 shell,报错terminal
whereis zsh chsh -s /usr/local/bin/zsh > chsh: /usr/local/bin/zsh is an invalid shell
查了一下,chsh
修改的是/etc/passwd
,而这个报错是因为'zsh'没有登记,在/etc/shells
里登记get
chsh
没有报错了,重启生效——注意是重启电脑