Sukoshi. Fuzoroi

某フリーPGの技術っぽいブログ。

Mac OSX El Capitan アップデート後の Homebrew

意気揚々と朝一でアップデートした El Capitan ! 一通り普段使いをしている限りはまったく問題ありませんでした。…といってもネット見たり、ちょっとRubyMine起動したりしてただけですが ;;

だけど、はてブを見ていたところ Homebrew はなにかしないといけないっぽい。とりあえず brew doctor を叩いてみたところ…

$ 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 and just ignore them. Thanks!

Warning: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.

You should probably change the ownership and permissions of /usr/local
back to your user account.

Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.

Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours. This is a long time in brewland!
To update Homebrew, run `brew update`.

このような感じで Warning が出ていました。 どうやら /usr/local のパーミッションが変更になったらしい。

というわけで、下記の公式ページをみてコマンド一発パーミッション変更。

github.com

$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local

その後、brew update をして

$ brew update
$ brew doctor
Your system is ready to brew.

みごと Warning が消えました。これでOKかな〜