作主語說發生時,運行BREW:在/ usr/bin中之前在/ usr/local/bin目錄
brew doctor
與以下警告迴應說:
Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths: ... Warning: Homebrew's bin was not found in your PATH. .... Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin.
然而,當我回聲PATH,它顯示/ usr/local/bin在/ usr/bin之前
/Users/bryce/.nvm/v0.10.32/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/bryce/bin:/Users/bryce/.rbenv/bin:/Users/bryce/.rbenv/shims:/Users/bryce/opt/Sencha/Cmd/4.0.0.203:/Users/bryce/Development/tools/apache-maven-3.1.1/bin:/opt/X11/bin:/usr/local/git/bin:/Users/bryce/.homesick/repos/bzdots/custom/bin
我在Mac OS X(Yosemite)上運行ZSH,iTerm。直覺是這些警告對我來說並不重要,但我的OCD部分想要擺脫所有的警告......
更新: 弗朗西斯科下面有正確的想法。原來,我認爲這是一個iTerm問題。我在研究另一個我正在尋找的問題時發現了the following。所以,我只是將默認配置文件的命令從「登錄shell」更改爲:
/bin/bash -c /bin/zsh
而它的所有開心。
您可以在'/ usr/local/Library/Homebrew/cmd/doctor.rb'函數'check_user_path_1'中調試一些調試輸出以檢查它的想法。 – 2014-11-14 16:17:30