所以,我在這裏發現了一些其他的鏗鏘錯誤,看起來有點類似,但是,修復不適用於我情況。Ansible Installation -clang:error:unknown argument:'-mno-fused-madd'
我正在使用OSX Mavericks,我們正在嘗試安裝Ansible。 我得到了點正確安裝,但是當我嘗試安裝Ansible時,我得到這個鐺錯誤。 我們首先想到它可能是一個版本問題,所以我在gcc49發生這個錯誤後重新安裝了gcc46,但是我仍然收到錯誤。
有誰知道如何解決這個問題?從pip.log日誌文件
我的完整的錯誤報告如下:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.9-intel-2.7/src/MD2.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Removing temporary dir /private/tmp/pip_build_root...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_7evji-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pycrypto
Exception information:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_7evji-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pycrypto
由於任何人誰可以幫助我與此有關。我們花了幾個小時試圖安裝它,並開始變得相當沮喪。
我使用 「GIT中克隆」 安裝ansible在OSX小牛,如在http://docs.ansible.com/intro_installation.html描述#從源代碼運行,它像一個魅力。你能告訴你如何安裝它? –
我已經嘗試了兩種方法。我試過克隆Ansible repo,並從那裏運行它,以及用pip安裝它。問題是Ansible需要paramiko,PyYAML,jinja2和httplib2。當嘗試安裝這些軟件包時(再次使用pip),我會得到完全相同的錯誤。 – CreationTribe
它不合格。它的小牛蟒。這裏是一個答案:http://stackoverflow.com/a/20295014/16998 – jrwren