圖片來源:官網
最近也遇到電池膨脹的災情,只好參考官網:https://support.apple.com/zh-tw/HT204350
搬家後產生了一連串的錯誤,主要都是Homebrew 和 Zsh 設定跑掉或衝突所致
Warning: git 2.20.1 is already installed and up-to-date To reinstall 2.20.1, run `brew reinstall git` Error: Git must be installed and in your PATH!
重新安裝git 後,仍然出現下面錯誤
dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib Referenced from: /usr/local/bin/git Reason: image not found
參考網路上的解法:
for x in $(brew list -1); do brew unlink $x; brew link $x; done
brew reinstall gettext brew reinstall git
沒有留言:
張貼留言