jiansoung / issues-list

记录日常学习和开发遇到的问题。欢迎评论交流:)
https://github.com/jiansoung/issues-list/issues
MIT License
14 stars 0 forks source link

`brew doctor` - Warning: "config" scripts exist outside your system or Homebrew directories. #1

Open jiansoung opened 5 years ago

jiansoung commented 5 years ago

Issue

$ brew doctor
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 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/songjian/.pyenv/shims/python3.6m-config
  /Users/songjian/.pyenv/shims/python-config
  /Users/songjian/.pyenv/shims/python3-config
  /Users/songjian/.pyenv/shims/python3.6-config

Fix It !

Put the following line into your shell profile (~/.bash_profile or ~/.zshrc)

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

References

  1. Macにpyenvを入れたらbrew doctorで怒られるようになったので対応したメモ
Zamy97 commented 4 years ago

I hope it's okay to follow up but I still am getting the warning even after putting the above fix it line in bash file? Would appreciate if anyone is able to point me in the right direction, please