Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

gcc

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

gcc pthread.c -o pthread 

Returns:

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

and my code does not compile.

Why is this happening and how can I fix this problem?

like image 503
coachcal Avatar asked Oct 04 '14 21:10

coachcal


People also ask

Does Xcode require admin rights?

>Will I have any problems using Xcode without admin rights? Yes, you will. Quoting off the 'net on the risk you've already seen it... "If the requirement is "no admin rights" on the workstation, the best way to handle that is by moving development into virtual machines and giving the developer admin rights there.

How do I accept Xcode license on Mac?

You need to start/open Xcode once to accept the license agreement. Easiest way to run the application is by clicking on the Spotlight icon on top right and just type its name.


1 Answers

Open up Xcode, and accept the new user agreement. This was happening because a new version of Xcode was downloaded and the new agreement was not accepted.

like image 106
coachcal Avatar answered Oct 08 '22 22:10

coachcal