homebrewでphpのバージョンを7にあげようとしたら、Error: The /usr/local directory is not writable.が出てできなかった。
理由はmacのセキュリティ上の設定のせいだったらしい。
参考:
https://qiita.com/bohebohechan/items/720cc0f830f3222bf99d
上記を参考に、早速homebrewをアップデート。
brew update
Error: 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.
sudo chown -R $(whoami):admin /usr/local
ここでsudo chown -R $(whoami):admin /usr/localを実行しても拒否されたので、ググって対応。
参考:
http://berukann.hatenablog.jp/entry/2015/12/30/123020
これで問題なくupdateができた。