合理主義的グルメブログ

学生起業家の日常をツラツラと書いています。主に食事情報です。

python-configで,brewさんにおこられた

基本的にこのサイトの通りでOK(Warning 2)

brew doctorのwarningを解決する - shoya.io

 

ただし,根本的に解決した訳ではなく,Warningが表示されなくなっただけ

 

 

warningの内容↓

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/username/.pyenv/shims/python-config
    /Users/username/.pyenv/shims/python2-config
    /Users/username/.pyenv/shims/python2.7-config

 

解決策

.zshenvか,.zshrcに下記を追加

alias brew="env PATH=${PATH/\/Users\/${USER}\/\.pyenv\/shims:?/} brew"