brew doctor
したら、*-config
というスクリプトが、パスに通っているとダメと怒られる。
この場合は、pyenvのスクリプトが、NGらしい。
$ brew doctor Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /Users/ryu/.pyenv/shims/python-config /Users/ryu/.pyenv/shims/python2-config /Users/ryu/.pyenv/shims/python2.7-config /Users/ryu/.pyenv/shims/python3-config /Users/ryu/.pyenv/shims/python3.4-config /Users/ryu/.pyenv/shims/python3.4m-config
そこで、こちらを参考に、
以下を.zshrcに追加したら、消えた。
alias brew="env PATH=${PATH/${HOME}\/\.pyenv\/shims:/} brew"