
Ubuntu日本語フォーラム

ログインしていません。
http://groups.google.co.jp/group/vine-users-forum/browse_thread/thread/0c1a981c8dde791b/c427a4e2334ff5d8
このサイトを参考にして見たのですが、
root@y-desktop:/usr/local/src# easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.6
Downloading http://codespeak.net/lxml/lxml-2.2.6.tgz
Processing lxml-2.2.6.tgz
Running lxml-2.2.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-R-s34Z/lxml-2.2.6/egg-dist-tmp-tvbvYo
Building lxml version 2.2.6.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available.
ERROR: /bin/sh: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
src/lxml/lxml.etree.c:4:20: error: Python.h: No such file or directory
src/lxml/lxml.etree.c:5:26: error: structmember.h: No such file or directory
src/lxml/lxml.etree.c:7:6: error: #error Python headers needed to compile C extensions, please install development version of Python.
error: Setup script exited with error: command 'gcc' failed with exit status 1
このようにエラーになります。libxml2 と libxsltはすでに
synapticを見るとインストールされているのですが。
どのようにしたらlxmlがちゃんとインストールされるのでしょうか
オフライン
>このようにエラーになります。libxml2 と libxsltはすでに
>synapticを見るとインストールされているのですが
libxslt1-dev、libxml2-devが必要です。
今回のように、ソースからパッケージをインストールする場合、xxx-dev が必要になる場合が多いです。
>error: Python.h: No such file or directory
なので、python3.1-dev も必要かもしれません。
オフライン
回答ありがとうございます。
libxslt1-dev、libxml2-devを入れてやってみた
のですが、Building against libxml2/libxslt in the following directory: /usr/lib
で止まってしまいます。ここからどうしたらよいでしょうか。
easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.6
Downloading http://codespeak.net/lxml/lxml-2.2.6.tgz
;;;;Processing lxml-2.2.6.tgz
Running lxml-2.2.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P4CqwZ/lxml-2.2.6/egg-dist-tmp-LLzFni
Building lxml version 2.2.6.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available.
Using build configuration of libxslt 1.1.22
Building against libxml2/libxslt in the following directory: /usr/lib
オフライン
http://packages.ubuntu.com/ja/karmic/python-lxml
これは関係ないパッケージでしょうか?
オフライン
回答ありがとうございます。
次はこの様になりましたが、
まだエフェクトが使えません。
このあとどうすればよいでしょうか。
# easy_install lxml
Searching for lxml
Best match: lxml 1.3.6
lxml 1.3.6 is already the active version in easy-install.pth
Using /usr/lib/python2.5/site-packages
Processing dependencies for lxml
Finished processing dependencies for lxml
オフライン
追加です
incscapeでトリムマークを使おうとすると、
この様に表示されます。
どうすればよいでしょうか
Traceback (most recent call last):
File "/home/y/.inkscape/extensions/trimmark.py", line 19, in <module>
import inkex, simplestyle
ImportError: No module named inkex
オフライン