XML::LibXSLT をインストールした記録
perlモジュールのXML::LibXSLT はlibxsltライブラリに依存してる。
libxslt をインストールしようとすると libxml のバージョンが低いと怒られた><
Vine Linux 4.2 だと、apt-get で入れられる libxml/libxml2、libxml-devel/libxml2-devel は XML::LibXSLT の最新版1.70 に対して古いようす。
そういうわけで、rpm探すのも面倒なので、ソースから入れました。
[libxml2]
# wget ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz # tar zvxf lixml2-2.7.6.tar.gz # cd libxml2-2.7.6 # ./configure --prefix=/usr # make && make install
[libxslt]
# wget ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz # tar zvxf libxslt-1.1.26.tar.gz # cd libxslt-1.1.26 # ./configure # make && make install
[XML::LibXSLT]
# cpan -i XML::LibXSLT ...(snip)... /usr/bin/ld: cannot find -lgdbm collect2: ld はステータス 1 で終了しました make: *** [blib/arch/auto/XML/LibXSLT/LibXSLT.so] エラー 1 PAJAS/XML-LibXSLT-1.70.tar.gz /usr/bin/make -- NOT OK
o.....rz
libxslt は通ったが、今度は gdbm ライブラリがないとか言われてた(ldがないのか?)。
# apt-get install gdb gdbm-devel
したらOKだった。
# cpan -i XML::LibXSLT PAJAS/XML-LibXSLT-1.70.tar.gz /usr/bin/make install -- OK
done.
で、最終的に何がやりたかったかと言うと、MojoMojo 入れたかっただけなんですけど、Catalyst も古かったみたいで、特に Catalyst::Plugin::* をのきなみ入れなおしくらったりしつつ、、、
以下のエラーだけ追わずに force してしまった。
t/c/comment.t ................... ok # Failed test 'new password emailed' # at t/c/email.t line 25. # got: '0' # expected: '1' Can't call method "header" on an undefined value at t/c/email.t line 29. # Looks like you planned 14 tests but ran 4. # Looks like you failed 1 test of 4 run. # Looks like your test exited with 9 just after 4.
でもなんとか入れた。
# cpanm -f MojoMojo Fetching http://search.cpan.org/CPAN/authors/id/M/MR/MRAMBERG/MojoMojo-0.999042.tar.gz Building and testing MojoMojo-0.999042 for MojoMojo... MojoMojo installed successfully.