问题:
While attempting to compile my C program, running the following command:在尝试编译我的 C 程序时,运行以下命令:
gcc pthread.c -o pthread
Returns:返回:
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.同意 Xcode/iOS 许可证需要管理员权限,请通过 sudo 以 root 身份重新运行。
and my code does not compile.我的代码无法编译。
Why is this happening and how can I fix this problem?为什么会发生这种情况,我该如何解决这个问题?
解决方案:
参考一: https://en.stackoom.com/question/1lv7r参考二: https://stackoom.com/question/1lv7r