Ansible Installation -clang: error: unknown argument: '-mno-fused-madd'

前端 未结 3 1913
情书的邮戳
情书的邮戳 2020-12-04 13:40

So, I\'ve found some other clang error\'s on here that appear to be somewhat similar, however, the fixes aren\'t applicable to my situation.

I\'m using OSX Mavericks

3条回答
  •  执念已碎
    2020-12-04 14:10

    For the beginners, who read and tried the answer above but still failed (me):

    sudo su - export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments pip install ansible exit

    You need to run those export commands as the root user. The previous answer clearly states this, but what it actually meant didn't translate to me as a terminal novice. What sudo su - does is basically switch to the root user. Then any commands you type are executed as root, and this thing works.

    This finally let me get Ansible running on OSX 10.9.2 after a lot of head-banging.

    Solution reference: https://github.com/ansible/ansible/issues/7146#issuecomment-41239561

提交回复
热议问题