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

后端 未结 11 1186
故里飘歌
故里飘歌 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:09

    If you have similar issues in Intellij do as others said above me :

    1. Open Terminal.
    2. Enter this command: sudo xcodebuild --license.
    3. Enter system password.
    4. Go to the end of file: Press space(button) to do that.
    5. Type 'Agree' to the license.

    And you are done.!!

提交回复
热议问题