“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.” when using GCC

后端 未结 11 1155
故里飘歌
故里飘歌 2020-11-30 16:54

While attempting to compile my C program, running the following command:

gcc pthread.c -o pthread

Returns:

Agreeing

相关标签:
11条回答
  • 2020-11-30 17:26

    Opening XCode and accepting the license fixes the issue.

    0 讨论(0)
  • 2020-11-30 17:28

    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 :))

    0 讨论(0)
  • 2020-11-30 17:30

    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 ...

    1. I entered the following in terminal:

      sudo xcodebuild -license
      
    2. 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.

    0 讨论(0)
  • 2020-11-30 17:30

    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.

    0 讨论(0)
  • 2020-11-30 17:33

    Follow these steps:

    1. Open Terminal.
    2. Enter this command: sudo xcodebuild --license.
    3. Enter system password.
    4. Agree to the license.
    0 讨论(0)
提交回复
热议问题