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

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

    I had the same issue when I tried to use git.

    It is possible to install git without it. And I doubt that gcc on mac is truly dependent on XCode. And I don't want to use root to accept something unless I'm sure I need it.

    I uninstalled XCode by navigating to the applications folder and dragging XCode to the trash.

    Now my git commands work as usual. I'll re-install XCode if/when I truly need it.

提交回复
热议问题