世界のやまさ

SEKAI NO YAMASA

brew doctor のエラー対処

brew docotor したらいろいろエラーが出ていたのでその対処。

Warning: /usr/bin occurs before /usr/local/bin

エラーメッセージ

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    emacs
    emacsclient
    etags
    gcov-4.2
    git
    git-cvsserver
    git-receive-pack
    git-shell
    git-upload-archive
    git-upload-pack
    gitk

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.

原因

デフォルトが bashzsh を使ったときに$PATH が /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin: のようになってしまうから。

対処

/etc/zshenv を /etc/zprofile にリネームする

sudo mv /etc/zshenv /etc/zprofile

via 【Mac】zshをサブシェルで起動するとPATHがおかしくなる - よんちゅBlog

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

エラーメッセージ

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/osxfuse.pc

原因

fuse4x を入れているとなる模様。Bitcasaの時にいろいろしたけど、結局不要となったので削除する。

対処

brew uninstall fuse4x を行い、まだエラーが出ていたので手動で削除した