Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created April 30, 2012 03:07
Show Gist options
  • Save douglasmiranda/2555156 to your computer and use it in GitHub Desktop.
Save douglasmiranda/2555156 to your computer and use it in GitHub Desktop.
Solução para instalar lxml no ubuntu com sucesso =] ( erro em pip install lxml )
#Se o erro for algo parecido com isto:
#building 'lxml.etree' extension
#gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
#In file included from src/lxml/lxml.etree.c:239:0:
#src/lxml/etree_defs.h:9:31: erro fatal: libxml/xmlversion.h: Arquivo ou diretório não encontrado
#compilação terminada.
#error: command 'gcc' failed with exit status 1
#basta instalar libxml2-dev e libxslt-dev
sudo apt-get install libxml2-dev libxslt-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment