在安装 oh-my-zsh 时,我遇到了一个错误,操作如下:
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
但最终我得到了:
/usr/bin/env: zsh: No such file or directory
sh: source: not found
我做错了什么吗?
机器:Ubuntu 10.10
在安装 oh-my-zsh 时,我遇到了一个错误,操作如下:
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
/usr/bin/env: zsh: No such file or directory
sh: source: not found
apt-get install zsh
然后使用zsh安装oh-my-zsh:
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
然后你要将你的shell更改为zsh
chsh -s `which zsh`
您可能没有安装zsh。在运行脚本之前,您应该运行sudo apt-get install zsh
。
如果您已经安装了zsh,您应该执行以下操作:
sudo ln -s /bin/zsh4 /bin/zsh