"Make" not working after update from High Sierra to Big Sur

Hi,

I've just updated my OS from High Sierra to Big Sur (on an intel MacBook pro) and my "make" command no longer works:

(base) myUser-mbp-6:~ myUser$ make

sh: line 1:   913 Bus error: 10           /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null

make: error: unable to find utility "make", not a developer tool or in PATH


I've reinstalled Xcode command line tools but it does not fix this.
I believe I found a solution.

When updating the OS, you need to agree again to the Xcode licence agreement. In the terminal:

sudo xcodebuild -license

Put in your password, and then hit enter to view the licence agreement. Press space until you get to the end and type "agree" to agree to the licence.

make and gcc should then work.


Is there something else you have to do, like log out/in, reboot, or something? Because I tried this and I still get the bus error.

"Make" not working after update from High Sierra to Big Sur
 
 
Q