2012-07-06 102 views
3

在安裝哦,我-zsh的,做我得到一個錯誤這樣的:錯誤而安裝哦,我-的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

回答

9

對於誰可能使用哦,MY-的zsh在Ubuntu問題的其他人,這裏是從這個要點採取的解決方案:https://gist.github.com/1498393

首先安裝的zsh:

apt-get install zsh 

然後安裝哦,我的 - zsh中使用的zsh:

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh 

,然後你改變你的shell中的zsh

chsh -s `which zsh` 

確保您重新啓動您的終端會話,無需重啓

3

你(可能)沒有安裝的zsh。在運行腳本之前,您應該運行sudo apt-get install zsh

如果您已經安裝的zsh,你應該做到以下幾點:

sudo ln -s /bin/zsh4 /bin/zsh 

這是因爲Ubuntu的不使這個在安裝時,所以你必須自己做™。

無論如何,你應該更新到Ubuntu 12.04LTS Precise Pangolin,因爲你的版本不再支持。