I have just updated my MacBook big Sur to Monterey. But after updating, whenever I tried to run GCC in the terminal it shows an invalid active developer path error. I am an absolute beginner, and can't resolve this error. Please help me to resolve this error.
Log:
gcc --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun