While attempting to compile my C program, running the following command:
gcc pthread.c -o pthread
Returns:
Agreeing
Opening XCode and accepting the license fixes the issue.
You don't need to fiddle around with any command :)
Once the XCode is updated, open the Xcode IDE program. Please accept terms and conditions.
You are all set to go :))
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.
I'm facing the same issue.
The issue because of X-Code.
Solution: 1. Open X-code and accept user agreement (T&C). or 2. Restart your MAC, It will resolve automatically.
Follow these steps:
sudo xcodebuild --license
.