lipo:无法确定以下架构的类型:/var/folders/ [英] lipo: can't figure out the architecture type of: /var/folders/

查看:87
本文介绍了lipo:无法确定以下架构的类型:/var/folders/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Mac OSX Snowleopard上安装lxml并不断收到错误消息:

I tried installing lxml on Mac OSX Snowleopard and keep getting the error:

lipo: can't figure out the architecture type of: /var/folders/

我确实安装了具有10.4 SDK支持的XCode,并将gcc 4.2更改为4.0.1

I did install XCode with 10.4 SDK support and I changed gcc 4.2 to 4.0.1

任何线索???带有Leopard 1.6.7的Python 2.6.1 ..

Any clues??? Python 2.6.1 with Leopard 1.6.7..

running install
running bdist_egg
running egg_info
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'
warning: no files found matching 'lxml.etree.c' under directory 'src/lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src/lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src/lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src/lxml'
warning: no files found matching '*.html' under directory 'doc'
writing manifest file 'src/lxml.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-universal/egg
running install_lib
running build_py
running build_ext
building 'lxml.etree' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/usr/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-universal-2.6/src/lxml/lxml.etree.o -w -flat_namespace
i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
powerpc-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
powerpc-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/tmp//ccCwMxyq.out
error: command 'gcc-4.2' failed with exit status 1

推荐答案

我发现,通过brew安装python可以轻松避免此类编译问题.如果brew无法链接公式,请强制执行以下操作:

I found that compilation issues like these are easily avoided by installing python via brew. If brew isn't able to link the formula, just force it with:

brew link --overwrite python

另请参见: http://docs.python-guide. org/en/latest/starting/install/osx/

这篇关于lipo:无法确定以下架构的类型:/var/folders/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆