Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Created February 20, 2014 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keithrbennett/9106009 to your computer and use it in GitHub Desktop.
Save keithrbennett/9106009 to your computer and use it in GitHub Desktop.
Apple's gcc refuses to run without accepting the license at runtime.
> sudo pip install ansible
...
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/tmp/pip_build_root/pycrypto':
configure: error: C compiler cannot create executables
# Note, NO CLUE that this failure was simply due to the need to accept the license.
# (I guess the script was capturing all gcc's output.)
[0] 21:24 mac13 /Users/kbennett/temp
>gcc
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
[69] 21:24 mac13 /Users/kbennett/temp
>sudo gcc
You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.
Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment