gccコマンドで invalid active developer path っていうエラーが出たときの対処
gccでC言語のプログラムをコンパイルしようとしたら以下のようなエラーが出た
$ gcc hello.c xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode-select をインストールすればいいらしい
$ xcode-select --install
インストール完了後、再度、gccコマンドを使ってみると使えているっぽい
$ gcc clang: error: no input files