“同意 Xcode/iOS 許可證需要管理員權限,請通過 sudo 以 root 身份重新運行。” 使用 GCC 時

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章