BD2KGenomics / cgcloud

Image and VM management for Jenkins, Spark and Mesos clusters in EC2
Other
22 stars 17 forks source link

Pending XCode license acknowledgement breaks installation of cgcloud-core #75

Open dyollluap opened 8 years ago

dyollluap commented 8 years ago

While installing cgcloud I was continually seeing this error after checking that all cgcloud dependencies were in place:

Command "/Users/plloyd/cgcloud/bin/python -c "import setuptools, tokenize;file='/private/var/folders/nx/1ll_dxgx0snf5n9p3_82gs3w0000gp/T/pip-build-4I5oQ3/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/nx/1ll_dxgx0snf5n9p3_82gs3w0000gp/T/pip-Y9vAqS-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/plloyd/cgcloud/include/site/python2.7/pycrypto" failed with error code 1 in /private/var/folders/nx/1ll_dxgx0snf5n9p3_82gs3w0000gp/T/pip-build-4I5oQ3/pycrypto

pip list confirmed everything was installed. gcc -v revealed this: (cgcloud)eduroam-169-233-201-128:Documents plloyd$ gcc -v

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

Even though xcode had been installed and setup, there must have been an update after which time I had not yet agreed to their latest eula. This caused gcc to be inoperable. Agreeing to the eula resolved the problem.

hannes-ucsc commented 8 years ago

There is no way to work around this issue but we should mention this case in the README. Kudos to the Apple engineer who came up with this mechanism.