TIL

Today I Learned. 知ったこと、学んだことを書いていく

gccコマンドで invalid active developer path っていうエラーが出たときの対処

gccC言語のプログラムをコンパイルしようとしたら以下のようなエラーが出た

$ 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

参考文献

El Capitanにしたらgitコマンド(CUI)が動かなくなった。 - Qiita