Mac OSをSierraにしたらhomebrewが動かなくなった
Sierraにupdateしてからbrew updateを実行したら下記のようなエラーが発生しました
1 2 3 4 5 6 |
$ brew update xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: /usr/local is not writable. You should change the ownership and permissions of /usr/local back to your user account: sudo chown -R $(whoami) /usr/local |
解決策
Termilanを開いて下記コマンドを実行してxcode-selectをインストールしたら正常に動きました。
1 |
xcode-select --install |