【Python】warningを解決→HomeBrew:brew doctorコマンドを実行した時のwarning表示を消す
【Python】HomeBrew:brew doctorコマンドを実行した時にwarningが表示される
表示されてほしい画面
1 |
Your system is ready to brew. |
ワーニング(エラー)表示画面
1 2 3 4 5 6 7 8 |
Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! 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 which additional flags to use when compiling and linking. |
解決方法
1 |
echo 'alias brew="env PATH=${PATH/$HOME\/\.pyenv\/shims:/} brew"' >> ~/.bashrc ; echo 'eval "$(pyenv init -)"' >> ~/.bashrc |
ターミナルでexitを実行して終了 → 再度ターミナルのウィンドウを開いてください。
あるいは以下のコマンドを実行します。
1 |
source ~/.bashrc |
再度、brewコマンドを実行します。
1 |
brew doctor |
これでワーニングを消せるはずです。
最後まで読んでいただき、ありがとうございました。