우분투에 lxml 설치하려면 어떻게 해야 하나요?
조회수 4614회
발생하는 문제 및 실행환경
우분투 11에서 easy_install을 써서 lxml을 설치하고 있는데 자꾸 에러가 뜹니다.
$ easy_install lxml
을 쓰면
에러 내용
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3
Downloading http://lxml.de/files/lxml-2.3.tgz
Processing lxml-2.3.tgz
Running lxml-2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7UdQOZ/lxml-2.3/egg-dist-tmp-GacQGy
Building lxml version 2.3.
Building without Cython.
ERROR: /bin/sh: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
In file included from src/lxml/lxml.etree.c:227:0:
src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
compilation terminated.
내용을 봐서는 libxslt나 libxml2가 없어서 생기는 문제 같아서 http://www.techsww.com/tutorials/libraries/libxslt/installation/installing_libxslt_on_ubuntu_linux.php 랑 http://www.techsww.com/tutorials/libraries/libxml/installation/installing_libxml_on_ubuntu_linux.php 에 하란대로 했는데 이 것도 안됩니다.
wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.6.27.tar.gz
를 쓰면
에러내용
<successful connection info>
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /libxml2 ... done.
==> SIZE libxml2-sources-2.6.27.tar.gz ... done.
==> PASV ... done. ==> RETR libxml2-sources-2.6.27.tar.gz ...
No such file `libxml2-sources-2.6.27.tar.gz'.
이라고 뜨고, libxml2 2.6.27
랑 2.6.29
버전 모두 시도했지만 둘 다 똑같이 안됩니다.
어찌어찌해서 sudo apt-get install libxml2-dev
은 성공했는데 아무것도 바뀐 게 없어요.
이런 경우엔 어떻게 해야 하나요?
댓글 입력