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

前端 未结 3 1912
情书的邮戳
情书的邮戳 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:02

    I ran into the same problem recently while trying to install a different package.

    Setting the following environment variables prior to installing with pip resolved the issue for me:

    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    

    If you're installing via sudo, don't forget to use "sudo -E" so that your environment variables propagate through sudo.

    If that doesn't work for you, try the following command instead:

    ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible
    

    Alternatively, as yet another potential solution, you can attempt to recompile a fresh version of python using Homebrew.

    See this question for more information.

    Hope this helps!

提交回复
热议问题