お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2010-04-28 23:35:23

yoshiay
新しいメンバ
登録日: 2010-01-10

inkscapeのエフェクトが使えない

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がちゃんとインストールされるのでしょうか

オフライン

 

#2 2010-04-29 11:28:58

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: inkscapeのエフェクトが使えない

>このようにエラーになります。libxml2 と libxsltはすでに
>synapticを見るとインストールされているのですが
libxslt1-dev、libxml2-devが必要です。
今回のように、ソースからパッケージをインストールする場合、xxx-dev が必要になる場合が多いです。
>error: Python.h: No such file or directory
なので、python3.1-dev も必要かもしれません。

オフライン

 

#3 2010-04-29 15:10:30

yoshiay
新しいメンバ
登録日: 2010-01-10

Re: inkscapeのエフェクトが使えない

回答ありがとうございます。

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

オフライン

 

#4 2010-04-29 15:56:48

hir0
メンバ
登録日: 2008-09-28

Re: inkscapeのエフェクトが使えない

http://packages.ubuntu.com/ja/karmic/python-lxml
これは関係ないパッケージでしょうか?

オフライン

 

#5 2010-04-29 20:33:36

yoshiay
新しいメンバ
登録日: 2010-01-10

Re: inkscapeのエフェクトが使えない

回答ありがとうございます。
次はこの様になりましたが、
まだエフェクトが使えません。
このあとどうすればよいでしょうか。



#  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

オフライン

 

#6 2010-04-30 13:47:02

yoshiay
新しいメンバ
登録日: 2010-01-10

Re: inkscapeのエフェクトが使えない

追加です

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

オフライン

 

Board footer

Powered by FluxBB