如何解决试图在max osx豹上安装lxml
| 我尝试了很多不同的指南..这使我最远..CFLAGS=\"$CFLAGS -lgcrypt -fPIC\" STATIC_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\'
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#
解决方法
这为我工作:
sudo env ARCHFLAGS=\"-arch i386 -arch x86_64\" easy_install lxml
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。