上午手賤,將Mackbook升級到了Yosemite 10.10.1,結果啓動iTerm後,直接就報以下錯誤:bash
dyld: Library not loaded: /usr/local/lib/libgdbm.1.dylib Referenced from: /usr/local/bin/zsh Reason: p_w_picpath not found
雖然不影響使用,但看起來實在彆扭,因而引發強迫症病發,遂開始修復這個問題。一通亂搜後,大神們都建議link一下,我就執行了下brew link pcre,又是報錯:ide
~ brew link pcre Linking /usr/local/Cellar/pcre/8.36... Error: Could not symlink lib/pkgconfig/libpcre.pc /usr/local/lib/pkgconfig is not writable.
好吧,沒有權限,那把Owner改爲當前用戶老是沒問題的吧!.net
~ chown -R $USER:admin /usr/local/lib/pkgconfig
從新link,此次成功了:homebrew
~ brew link pcre Linking /usr/local/Cellar/pcre/8.36... 133 symlinks created
不放心又reinstall了一下:it
~ brew reinstall pcre ==> Reinstalling pcre ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pcre-8.36.yosemite.bottle.tar.gz Already downloaded: /Library/Caches/Homebrew/pcre-8.36.yosemite.bottle.tar.gz ==> Pouring pcre-8.36.yosemite.bottle.tar.gz /usr/local/Cellar/pcre/8.36: 146 files, 5.9M
從新打開了一下iTerm,終於再也不報那個錯了。強迫症的威力真是無窮啊!!!zsh