"Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." when using GCC
Got stuck as I was trying to a go get ... I think it was related to git.Here is how was able to fix it ...
I entered the following in terminal:
sudo xcodebuild -license
This will open the agreement. Go all the way to end and type "agree".
That takes care of go get issues.
It was quite interesting how unrelated things were.