mac 终端输入gcc ***.c结果出错显示如下:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决方法:
在终端里输入如下指令:

xcode-select --install