尝试在 max osx leopard 上安装 lxml

发布于 2024-11-15 11:05:06 字数 1749 浏览 1 评论 0原文

我尝试了很多不同的指南..这个指南让我走得最远..

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# 

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# 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情仇皆在手 2024-11-22 11:05:06

这对我有用:

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

This worked for me:

sudo env ARCHFLAGS="-arch i386 -arch x86_64" easy_install lxml
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文