尝试在max osx豹上安装lxml [英] trying to install lxml on max osx leopard

查看:153
本文介绍了尝试在max osx豹上安装lxml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  CFLAGS =$ CFLAGS  - lgcrypt -fPICSTATIC_DEPS = true easy_install-2.6 lxml 

然而,在安装所有依赖关系后,我收到此错误消息一遍又一遍地:

  install-NRDNAB / lxml-2.3 / build / tmp / libxml2 / lib / pkgconfig
/ usr / bin / install -c -m 644 libxslt.m4'/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/share/aclocal'
/ usr / bin / install - c -m 644 xsltConf.sh'/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib'
/ usr / bin / install -c -m 644 libxslt.pc libexslt.pc '/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib/pkgconfig'
构建没有Cython
使用libxml2的构建配置2.7.8和libxslt 1.1.26
在以下目录中构建libxml2 / libxslt:/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib
i686-apple -darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接未完成
i686-apple-darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接未完成
powerpc-apple-darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接未完成
powerpc-apple-darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接不完成
i686-apple-darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接未完成
i686-apple-darwin10-gcc-4.2.1:-lgcrypt:链接器输入文件未使用,因为链接未完成
ld:库找不到-lgcrypt
collect2:ld返回1退出状态
ld:库找不到-lgcrypt
collect2:ld返回1退出状态
ld:库找不到-lgcrypt
collect2:ld返回1退出状态
lipo:无法打开输入文件:/var/tmp//ccZA43Kh.out(没有这样的文件或目录)
错误:安装脚本退出与错误:命令'gcc-4.2'失败与退出状态1
sh-3.2 #


解决方案

这对我有用:

  sudo env ARCHFLAGS = -  arch i386 -arch x86_64easy_install lxml 


I have tried lots of different guides.. this one gets me the furthest..

CFLAGS="$CFLAGS -lgcrypt -fPIC" STATIC_DEPS=true easy_install-2.6 lxml

however after installing all dependencies I get this error message over and over again:

    install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib/pkgconfig"
 /usr/bin/install -c -m 644 libxslt.m4 '/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/share/aclocal'
 /usr/bin/install -c -m 644 xsltConf.sh '/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib'
 /usr/bin/install -c -m 644 libxslt.pc libexslt.pc '/private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib/pkgconfig'
Building without Cython.
Using build configuration of libxml2 2.7.8 and libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /private/tmp/easy_install-NRDNAB/lxml-2.3/build/tmp/libxml2/lib
i686-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
powerpc-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
powerpc-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: -lgcrypt: linker input file unused because linking not done
ld: library not found for -lgcrypt
collect2: ld returned 1 exit status
ld: library not found for -lgcrypt
collect2: ld returned 1 exit status
ld: library not found for -lgcrypt
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccZA43Kh.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
sh-3.2# 

解决方案

This worked for me:

sudo env ARCHFLAGS="-arch i386 -arch x86_64" easy_install lxml

这篇关于尝试在max osx豹上安装lxml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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