Homebrew 봄의 Warning 축제

8133 단어 homebrew
❯ 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: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or
https://developer.apple.com/download/more/.


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.

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:
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libtcl8.6.dylib
  /usr/local/lib/libtk8.6.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/fakemysql.h
  /usr/local/include/fakepq.h
  /usr/local/include/fakesql.h
  /usr/local/include/itcl.h
  /usr/local/include/itcl2TclOO.h
  /usr/local/include/itclDecls.h
  /usr/local/include/itclInt.h
  /usr/local/include/itclIntDecls.h
  /usr/local/include/itclMigrate2TclCore.h
  /usr/local/include/itclTclIntStubsFcn.h
  /usr/local/include/mysqlStubs.h
  /usr/local/include/odbcStubs.h
  /usr/local/include/pqStubs.h
  /usr/local/include/tcl.h
  /usr/local/include/tclDecls.h
  /usr/local/include/tclOO.h
  /usr/local/include/tclOODecls.h
  /usr/local/include/tclPlatDecls.h
  /usr/local/include/tclThread.h
  /usr/local/include/tclTomMath.h
  /usr/local/include/tclTomMathDecls.h
  /usr/local/include/tdbc.h
  /usr/local/include/tdbcDecls.h
  /usr/local/include/tdbcInt.h
  /usr/local/include/tk.h
  /usr/local/include/tkDecls.h
  /usr/local/include/tkPlatDecls.h

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
  /usr/local/lib/pkgconfig/tcl.pc
  /usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libtclstub8.6.a
  /usr/local/lib/libtkstub8.6.a

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  php


대처법을 자신을 위해 메모.
어디까지나 대처하는 문언 밖에 쓰지 않기 때문에 원인은 참고로 한 선인의 Qiita의 기사를 볼 수 있어.

Warning: A newer Command Line Tools release is available.


brew --config 에서 CLT 버전을 확인한 다음 More Downloads for Apple Developers 에서 dmg 버전의 CLT를 소개합니다.

Warning: "config" scripts exist outside your system or Homebrew directories.


echo 'alias brew="env PATH=${PATH/\/Library\/Frameworks\/Python\.framework\/Versions/3\.7/bin:/} brew"' >> .zprofile

터미널을 재부팅.

Warning: Unbrewed dylibs were found in /usr/local/lib.


rm -rf /usr/local/lib/libtcl8.6.dylib
❯ rm -rf /usr/local/lib/libtk8.6.dylib

Warning: Unbrewed header files were found in /usr/local/include.



놀랄 정도로 역기술
sudo rm -rf /usr/local/include/fakemysql.h
❯ sudo rm -rf /usr/local/include/fakepq.h
❯ sudo rm -rf /usr/local/include/fakesql.h
❯ sudo rm -rf /usr/local/include/itcl.h
❯ sudo rm -rf /usr/local/include/itcl2TclOO.h
❯ sudo rm -rf /usr/local/include/itclDecls.h
❯ sudo rm -rf /usr/local/include/itclInt.h
❯ sudo rm -rf /usr/local/include/itclIntDecls.h
❯ sudo rm -rf /usr/local/include/itclMigrate2TclCore.h
❯ sudo rm -rf /usr/local/include/itclTclIntStubsFcn.h
❯ sudo rm -rf /usr/local/include/mysqlStubs.h
❯ sudo rm -rf /usr/local/include/odbcStubs.h
❯ sudo rm -rf /usr/local/include/pqStubs.h
❯ sudo rm -rf /usr/local/include/tcl.h
❯ sudo rm -rf /usr/local/include/tclDecls.h
❯ sudo rm -rf /usr/local/include/tclOO.h
❯ sudo rm -rf /usr/local/include/tclOODecls.h
❯ sudo rm -rf /usr/local/include/tclPlatDecls.h
❯ sudo rm -rf /usr/local/include/tclThread.h
❯ sudo rm -rf /usr/local/include/tclTomMath.h
❯ sudo rm -rf /usr/local/include/tclTomMathDecls.h
❯ sudo rm -rf /usr/local/include/tdbc.h
❯ sudo rm -rf /usr/local/include/tdbcDecls.h
❯ sudo rm -rf /usr/local/include/tdbcInt.h
❯ sudo rm -rf /usr/local/include/tk.h
❯ sudo rm -rf /usr/local/include/tkDecls.h
❯ sudo rm -rf /usr/local/include/tkPlatDecls.h

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.


rm -rf /usr/local/lib/pkgconfig/tcl.pc
❯ rm -rf /usr/local/lib/pkgconfig/tk.pc

Warning: You have unlinked kegs in your Cellar.


❯ brew unlink php
❯ rm -drf /usr/local/Cellar/php/
❯ brew cleanup

Warning: Unbrewed static libraries were found in /usr/local/lib.


rm -rf /usr/local/lib/libtclstub8.6.a
❯ rm -rf /usr/local/lib/libtkstub8.6.a

결과


❯ brew doctor
Your system is ready to brew.



기본적으로 Unexpected (以下略) 그렇다면 이하의 파일을 지우면 좋다.

참고로 한 사이트

좋은 웹페이지 즐겨찾기