2012-11-09 22 views
4

在我的Ubuntu 12.04 LTS上,我試圖通過在github oh-my-zsh項目頁面上找到的命令來安裝oh-my-zsh。sh:39:source:not found在安裝oh-my-zsh時

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

但我發現了以下錯誤。 用sudo嘗試,結果相同。

Looking for an existing zsh config... Found ~/.zshrc. [0;32]Backing up to ~/.zshrc.pre-oh-my-zsh Using the Oh My Zsh template file and adding it to ~/.zshrc Copying your current PATH and adding it to the end of ~/.zshrc for you. Time to change your default shell to zsh! Password: chsh: PAM authentication failed __ __
__//_ _ __ __ __ __ _/ /_
/__/__ \ /__ `__//// /_// / _ \ ///////////// /////( )/// _// // // // //_,/ //// //
/
_
/

....is now installed. sh: 39: source: not found

有什麼建議? 謝謝。

+1

想通了。 install.sh的最後一行是'/ usr/bin/env zsh source〜/ .zshrc' – moonstruck

+0

是的。你可以通過執行'''chsh -s $(which zsh)'''來解決這個問題 –

回答

4

錯誤sh: 39: source: not found只是問題的一部分。您發佈的輸出還表示與更改默認外殼程序有關的問題:Password: chsh: PAM authentication failed

同樣的問題報告爲in this issue

您應該按照oh-my-zsh github page(或here)上提供的手動安裝步驟操作。

0

問題是通過手動運行該腳本ohmyz.sh解析:

rm -rf ~/.oh-my-zsh/ 
curl -L http://install.ohmyz.sh > install.sh 
sh install.sh 

source

相關問題