- VirtualBox 安装 debian 7.8.0
- 官网下载 Zsh 5.0.7
- 解压缩,进入 root 状态
-
./configure,报错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'
apt-get install libncurses5-dev -
安装
./configure make make install -
安装'oh-my-zsh', 'install.sh'被下载到当前目录
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh sh install.sh -
上一步报错发现没装'git',先装上再运行就没有问题了
apt-get install git -
想把 zsh 作为默认 shell,报错
whereis zsh chsh -s /usr/local/bin/zsh > chsh: /usr/local/bin/zsh is an invalid shell -
查了一下,
chsh修改的是/etc/passwd,而这个报错是由于'zsh'没有登记,在/etc/shells里登记 - 好了,再运行
chsh没有报错了,重启生效——注意是重启电脑
Zsh 安装笔记
最新推荐文章于 2024-01-03 18:24:18 发布
本文详细介绍了从VirtualBox安装Debian 7.8.0到使用Zsh Shell过程中遇到的问题及其解决方法,包括安装依赖库libncurses5-dev、安装oh-my-zsh插件、确保git已安装以及将Zsh设为默认shell的过程。
505

被折叠的 条评论
为什么被折叠?



