我正嘗試使用運行在VirtualBox上的杜鵑沙箱和虛擬機(WinXP)進行惡意軟件分析。但是,我無法運行杜鵑因爲我沒有正確安裝cybox和maec。無法在OS X上安裝lxml 10.8.5
因此導致我無法自己安裝lxml的問題。 它只是不讓我通過使用pip或手動安裝setup.py文件來安裝。 這裏是我的了:
Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.26
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing requirements to src/lxml.egg-info/requires.txt
writing src/lxml.egg-info/PKG-INFO
writing top-level names to src/lxml.egg-info/top_level.txt
writing dependency_links to src/lxml.egg-info/dependency_links.txt
reading manifest file 'src/lxml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/lxml.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-intel/egg
running install_lib
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.8-intel-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/usr/include/libxml2 -I/Users/ajprameswari/Downloads/lxml-3.4.1/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
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 'clang' failed with exit status 1
我都嘗試LXML-3.4.0和LXML-3.4.1版本,但他們給了相同的結果。 我正在使用Python 2.7和OS X 10.8.5。有什麼可以指出來幫助我解決這個問題嗎?我是使用OS X的新手,我曾經在我的Ubuntu上工作,但由於缺乏我的Ubuntu機器的規格,我需要在這裏工作。
http://stackoverflow.com/questions/22313407/clang- error-unknown-argument-mno-fused-madd-python-package-installation-fa – Doon 2014-11-23 14:47:28
謝謝你指出這個解決方案!對不起,如果這是一個雙重 – prameshvari 2014-11-23 20:14:32