Errore durante l'installazione di lxml su Mac Snow Leopard

3

Ricevo quello che sembra essere un errore comune quando provo a installare lxml su MacOS 10.6:

Building lxml version 2.3.
Building without Cython.
Using build configuration of libxslt 1.1.24
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/lxml/lxml.etree.c:161594: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/tmp//cc7Ypl70.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

Ho provato diversi dei suggerimenti che ho trovato (impostazione di archflags, collegamento a gcc-4.0), ma ottengo sempre lo stesso errore ogni volta. Ho installato Xcode 4. Qualsiasi aiuto apprezzato.

RISOLTO con: sudo env ARCHFLAGS="- arch i386 -arch x86_64" easy_install lxml

No, grazie alla migrazione della domanda. Era più adatto per StackOverflow.

    
posta pbreitenbach 03.06.2011 - 06:30
fonte

1 risposta

2

C'è una soluzione qui: link

export ARCHFLAGS="-arch i386 -arch x86_64"

    
risposta data 09.06.2011 - 21:00
fonte

Leggi altre domande sui tag