GGG

プログラミング言語やソフトウェア開発について思ったことを書いてます

brew doctor (coreutil関連)[Putting non-prefixed findutils ...]

brew doctorを実行したら下記のWarningが出ていたので対応した。いつから? もしかしたら brew upgrade して pythonがバージョンが上がったのが影響しているかもしれない。

findutilsについて警告がでている。 要はfindutilsをuninstall -> install して解決。

症状

$ 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: Putting non-prefixed findutils in your path can cause python builds to fail.

解決

$ brew uninstall findutils 
Uninstalling /usr/local/Cellar/findutils/4.6.0... (25 files, 1.6MB)


$ brew install findutils
==> Downloading https://homebrew.bintray.com/bottles/findutils-4.6.0.high_sierra.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring findutils-4.6.0.high_sierra.bottle.2.tar.gz
==> Caveats
All commands have been installed with the prefix 'g'.
If you do not want the prefix, install using the "with-default-names" option.

If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:

    PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

    MANPATH="/usr/local/opt/findutils/libexec/gnuman:$MANPATH"
==> Summary
🍺  /usr/local/Cellar/findutils/4.6.0: 34 files, 1.6MB

参考

Installing and configuring GNU command-line utilities