« 携帯からテスト - 携帯からテスト | Home | UbuntuServerにImage::Magickが入らない! »

December 31, 2006

aptitude で libxml-sax-perl が入らない!

こんな感じのエラーが発生する。

libxml-sax-perl (0.12-5) を設定しています ...
Can't locate object method "save_parsers_debian" via package "XML::SAX" at /usr/bin/update-perl-sax-parsers line 90.
dpkg: libxml-sax-perl の処理中にエラーが発生しました (--configure):
 サブプロセス post-installation script はエラー終了ステータス 255 を返しました

これは、エラーメッセージにもあるようにdebian特有の問題らしい。家のUbuntu サーバーでも発生した。以下解決ページ

http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=229178

aptitudeでインストールする前にcpanでXML::SAXをインストールするとハマルらしい。
解決するには以下の方法で。

  1. perlモジュールをアンインストールするスクリプトを用意。http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modulesのスクリプトをコピーして、remove.plとして貼り付け保存。冒頭のパスは「/usr/bin/perl」に変えておく。
  2. スクリプトを実行。
    sudo ./remove.pl XML::SAX
  3. aptitude から入れなおす。
    sudo aptitude install libxml-sax-perl

1 TrackBack

TrackBack URL: http://aklaswad.com/cgi-bin/mt/mt-tb.cgi/71

Hatena::Gropu::Twitter ではその日の Twitter を、日記として POST する方もいらっしゃるようで。 というわけで、やって... Read More

1 Comment

これに嵌ってましたので非常に助かりました!!ありがとうございます。

Leave a comment

OpenID accepted here Learn more about OpenID

About this Entry

This page contains a single entry by aklaswad published on December 31, 2006 11:31 AM.

携帯からテスト - 携帯からテスト was the previous entry in this blog.

UbuntuServerにImage::Magickが入らない! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.