2011-06-14 2 views
1

나는 많은 다른 가이드를 시도했다.이 하나의 나를 멀리 가져옵니다 ..Mac OS X Leopard에 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# 
+0

는 슈퍼 사용자와 시도도 빌드 필수 PAC를 설치하려고 할 수 있습니다 케이지 ... – shahjapan

답변

4

이 나를 위해 일한 :

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

고마워요. OS X 10.6.8 사용 – Gourneau