ちょっと今さら感がいなめないが、Plaggerをインストールしてみた。
Plaggerとは、ちょっと使ったことがないので理解出来ていないが・・・
とっても便利なアグリゲーター?らしい。
Bloglines(オンライン上のRSSリーダ)や、MIXIの最新日記等をGMAILに
メール送信したり、とかいろいろ出来るらしい。
っということで、インストールを開始する。
設定
* CPANの初期設定
CPANを初めて使う場合は、以下のダイアログが表示され、初期設定を
行う必要がある。
よくわからなかったので、取り敢えず
「Are you read for manual configuration? [yes]」で「no」として、
自動で設定を行ってみた。
| $ export PERL5LIB=/usr/lib/perl5/ $ perl -MCPAN -e shell /usr/lib/perl5/5.8.6/CPAN/Config.pm initialized. CPAN is the world-wide archive of perl resources. It consists of about 100 sites that all replicate the same contents all around the globe. Many countries have at least one CPAN site already. The resources found on CPAN are easily accessible with the CPAN.pm module. If you want to use CPAN.pm, you have to configure it properly. If you do not want to enter a dialog now, you can answer 'no' to this question and I'll try to autoconfigure. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Are you ready for manual configuration? [yes] no |
Plaggerのtest
補足:
test Plaggerを行うと、他の必要なモジュールなどがある場合、CPANでインストールするか、
尋ねられる。
今回は、基本的に全てYesにして必要なモジュール、Plugin等全てCPANでインストールした。
(後述であるが、CPANでインストール出来なかったモジュールについては、個別で
インストールを行った)
| cpan>test Plagger CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 08 Jan 2007 07:24:36 GMT Running test for module Plagger Running make for M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz ok Scanning cache /root/.cpan/build for sizes Plagger-0.7.17/ Plagger-0.7.17/inc/ Plagger-0.7.17/inc/Module/ Plagger-0.7.17/inc/Module/Install/ Plagger-0.7.17/inc/Module/Install/Makefile.pm ・ ・(略) ・ Plagger-0.7.17/bin/plagger-ircbot Plagger-0.7.17/bin/plagger-search Plagger-0.7.17/bin/spotlight_comment.scpt Plagger-0.7.17/bin/plagger-atom-stream-consumer Plagger-0.7.17/MANIFEST Plagger-0.7.17/Changes Plagger-0.7.17/META.yml Removing previously used /root/.cpan/build/Plagger-0.7.17 CPAN.pm: Going to build M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz YAML Error: Error in require YAML::Loader - Base class package "YAML::Loader::Base" is empty. (Perhaps you need to 'use' the module which defines that package first.) at inc/YAML/Loader.pm line 4 BEGIN failed--compilation aborted at inc/YAML/Loader.pm line 4, <$IN> line 1. Compilation failed in require at (eval 11) line 3, <$IN> line 1. Code: Error in require YAML::Loader - Base class package "YAML::Loader::Base" is empty. (Perhaps you need to 'use' the module which defines that package first.) at inc/YAML/Loader.pm line 4 BEGIN failed--compilation aborted at inc/YAML/Loader.pm line 4, <$IN> line 1. Compilation failed in require at (eval 11) line 3, <$IN> line 1. at Makefile.PL line 88 Running make test Make had some problems, maybe interrupted? Won't test |
なんだかよくわからないが、YAMLのモジュールが欠けているらしい。
ということで、YAMLのインストールを行う。
| cpan> test YAML CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 08 Jan 2007 07:24:36 GMT Running test for module YAML Running make for I/IN/INGY/YAML-0.62.tar.gz CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/I/IN/INGY/YAML-0.62.tar.gz CPAN: Digest::MD5 loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/I/IN/INGY/CHECKSUMS CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/I/IN/INGY/YAML-0.62.tar.gz ok Scanning cache /root/.cpan/build for sizes YAML-0.62/ YAML-0.62/lib/ YAML-0.62/lib/Test/ YAML-0.62/lib/Test/YAML.pm YAML-0.62/lib/YAML/ YAML-0.62/lib/YAML/Loader.pm YAML-0.62/lib/YAML/Types.pm YAML-0.62/lib/YAML/Marshall.pm AML-0.62/inc/Test/Base/Filter.pm ・ ・(略) ・ YAML-0.62/ysh YAML-0.62/README YAML-0.62/META.yml YAML-0.62/COMPATIBILITY YAML-0.62/Makefile.PL CPAN.pm: Going to build I/IN/INGY/YAML-0.62.tar.gz *** WARNING *** This release breaks compatibility with versions earlier than version 0.60 of YAML::Syck and YAML.pm when serializing blessed references. See the COMPATIBILITY file for more information. Continue installing YAML.pm? [y] Continue installing YAML.pm? [y] y Checking if your kit is complete... Looks good Writing Makefile for YAML cp lib/Test/YAML.pm blib/lib/Test/YAML.pm cp lib/YAML/Types.pm blib/lib/YAML/Types.pm cp lib/YAML/Node.pm blib/lib/YAML/Node.pm /marshall...........ok ・ ・(略) ・ t/meta-yml...........ok t/node-info..........ok t/pugs-objects.......ok t/references.........ok t/svk................ok t/test...............ok All tests successful, 17 subtests skipped. Files=33, Tests=425, 24 wallclock secs (22.42 cusr + 1.24 csys = 23.66 CPU) /usr/bin/make test -- OK |
あっさりとテストは通ったので、続いてインストールを行う。
| cpan> install YAML Running install for module YAML Running make for I/IN/INGY/YAML-0.62.tar.gz Checksum for /root/.cpan/sources/authors/id/I/IN/INGY/YAML-0.62.tar.gz ok YAML-0.62/ YAML-0.62/lib/ YAML-0.62/lib/Test/ YAML-0.62/lib/Test/YAML.pm YAML-0.62/lib/YAML/ YAML-0.62/lib/YAML/Loader.pm ・ ・(略) ・ nstalling /usr/share/man/man3/YAML::Error.3pm Installing /usr/share/man/man3/YAML.3pm Installing /usr/share/man/man3/YAML::Marshall.3pm Installing /usr/share/man/man3/YAML::Loader::Base.3pm Installing /usr/share/man/man3/YAML::Dumper.3pm Installing /usr/bin/ysh Writing /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/YAML/.packlist Appending installation info to /usr/lib/perl5/5.8.6/i386-linux-thread-multi/perllocal.pod /usr/bin/make install -- OK cpan> |
これでOK.
取り敢えず、YAMLとやらはインストール成功したらしい。
再度のtest Plagger
再度test Plaggerをやってみる。
| cpan> test Plagger CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 08 Jan 2007 07:24:36 GMT Running test for module Plagger Running make for M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz ok Scanning cache /root/.cpan/build for sizes Plagger-0.7.17/ Plagger-0.7.17/inc/ Plagger-0.7.17/inc/Module/ Plagger-0.7.17/inc/Module/Install/ Plagger-0.7.17/inc/Module/Install/Makefile.pm Plagger-0.7.17/inc/Module/Install/Base.pm Plagger-0.7.17/inc/Module/Install/Include.pm Plagger-0.7.17/inc/Module/Install/Fetch.pm Plagger-0.7.17/inc/Module/Install/AutoInstall.pm ・ ・(略) ・ Plagger-0.7.17/inc/Module/Install/Scripts.pm Plagger-0.7.17/inc/Module/Install/Metadata.pm Plagger-0.7.17/inc/Module/Install/TestBase.pm Plagger-0.7.17/inc/Module/Install/Win32.pm Plagger-0.7.17/inc/Module/Install/WriteAll.pm Plagger-0.7.17/inc/Module/Install/Can.pm Plagger-0.7.17/inc/Module/Install.pm Plagger-0.7.17/inc/Module/AutoInstall.pm --18:22:18-- ftp://ftp.perl.org/pub/CPAN/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz (試行:20) => `-' ftp.perl.org|163.143.1.21|:21 に接続しています... 接続しました。 anonymous としてログインしています... サーバの応答にエラーがあるので、接続を終了します。 中止しました。 System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz" > /root/.cpan/sources/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz] doesn't exist Issuing "/usr/bin/ftp -n" Not connected. Local directory now /root/.cpan/sources/authors/id/Y/YS/YSAS Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz. Please check, if the URLs I found in your configuration file () are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz Giving up on '/root/.cpan/sources/authors/id/Y/YS/YSAS/Data-TemporaryBag-0.09.tar.gz' Note: Current database in memory was generated on Mon, 08 Jan 2007 07:24:36 GMT |
どうも何度やっても、FTPの接続エラーが発生してしまう。
うまく、CPANのサイトに接続出来ないようだ。
ということで、調べたところ解決策があった。
CPANのFTPのURLLISTを編集
CPANの設定ファイルのConfig.pmの「urllist」項目を次のように書き換える。
| vim /usr/lib/perl5/5.8.6/CPAN/config.pm 'urllist' => [q[ftp://ftp.cpan.jp/], ,q[ftp://ftp.kddilabs.jp/CPAN/], q[ftp://core.ring.gr.jp/pub/lang/perl/CPAN/]], |
再度挑戦
| cpan> test Plagger |
やはり、YAMLの時と同様に、いくつかのインストールに失敗するようだ。
ということで、インストールに失敗したものをいくつか別途にインストールを
行った。
MIME::Type
| cpan> test MIME::Type cpan> install MIME::Type |
Encode::Detect
| cpan> test Encode::Detect |
エラーが発生。
Data::Dumpが必要なようなので、Data::Dumpを先にインストール。
| cpan> test Data::Dump cpan> install Data::Dump cpan> install Encode::Detect |
うまくインストール出来た。
Test::Pod
| cpan> test Test::Pod cpan> install Test::Pod |
ということで、このほかにも何点か個別にインストールを行った。
いくつかは、よく分からなかったこともあってaptでインストール行った。
| apt-get install perl-Net-DNS apt-get install perl-XML-* apt-get install perl-HTML-Parser |
* 再挑戦
何度目かの再挑戦・・・。
| cpan> test Plagger |
やっと通った。
ここまでかなりの時間がかった。
cpanでは、Plaggerに必要なモジュールをPlaggerインストール時に一緒にインストールしてくれるが、
どうやら個別でCore featuresは先にインストールしたほうが良さそうだった。
| cpan> install Plagger |
でインストール成功!!
使い方については別途・・・
| < 前 |
|---|


