MacBook(MacOS X 10.4)にPlaggerをインストール

iTunesで動画とかPodCastとか遊んでみたかったので、PlaggerMacBookにもインストールしてみることにした。
ちなみにiPodは今は持ってない。5G iPodを買おうかと思ったけど、次のが出るまで待つ。
このエントリーを書いた時点では、Plaggerのバージョンは0.7.10だった。

CPANの設定

$ sudo su -
# cpan

CPANシェルを起動する。最初に起動したときはいくつか質問されるので、すべてEnterでデフォルトを選択する。
ミラーの設定だけは、近場を選択した方が幸せになれる。

Now we need to know where your favorite CPAN sites are located. Push
a few sites onto the array (just in case the first on the array won't
work). If you are mirroring CPAN to your local workstation, specify a
file: URL.

First, pick a nearby continent and country (you can pick several of
each, separated by spaces, or none if you just want to keep your
existing selections). Then, you will be presented with a list of URLs
of CPAN mirrors in the countries you selected, along with previously
selected URLs. Select some of those URLs, or just keep the old list.
Finally, you will be prompted for any extra URLs -- file:, ftp:, or
http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) [] 

(2)のAsiaを選択する。

Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) China
(2) Hong Kong
(3) India
(4) Indonesia
(5) Iran
(6) Israel
(7) Japan
(8) Malaysia
(9) Philippines
(10) Republic of Korea
(11) Russian Federation
(12) Saudi Arabia
(13) Singapore
(14) Taiwan
(15) Thailand
(16) Turkey
Select your country (or several nearby countries) [] 

(7)のJapanを選択する。

Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
(3) ftp://ftp.kddilabs.jp/CPAN/
(4) ftp://ftp.nara.wide.ad.jp/pub/CPAN/
(5) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(6) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(7) ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/
(8) http://ftp.cpan.jp/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5' [] 

自分のいるネットワークから近くて速いところを選択する。今回は(3)(8)を選択した。

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> 

これでようやくCPANを使う準備ができた。

CPANから依存モジュールをインストール

CPANを使う準備ができたので、とりあえずPlaggerの依存モジュールをインストールする。

cpan> test Plagger
中略
Can't locate object method "new" via package "YAML::Loader" at inc/YAML.pm line 97, <$IN> line 1.
Running make test
  Make had some problems, maybe interrupted? Won't test

cpan> 

早速エラーが発生。YAMLがないと言っているので、先にインストールしてやろう。

cpan> install YAML

とくにエラーもなくインストールできた。気を取り直してもう一回

cpan> exit
# cpan
cpan> test Plagger
中略
==> Auto-install the 26 mandatory module(s) from CPAN? [y] 
以下略

たくさんモジュールが不足しているので、インストールしていこう。

cpan -i Class::Accessor::Fast
cpan -i File::Find::Rule
cpan -i UNIVERSAL::require
cpan -i Template::Provider::Encoding
cpan -i Text::Tags
cpan -i DateTime
cpan -i DateTime::Format::Mail
cpan -i DateTime::Format::W3CDTF
cpan -i DateTime::Format::Strptime
cpan -i Digest::MD5

cpan
force install LWP
exit
cpan
force install Template
exit

cpan -i Template::Provider::Encoding
cpan -i HTML::Parser
cpan -i URI::Fetch
cpan -i Cache::Cache
cpan -i Module::Pluggable::Fast
cpan -i HTML::ResolveLink
cpan -i Date::Parse
cpan -i MIME::Types
cpan -i Net::DNS

cpan
force install XML::Feed
exit

cpan -i XML::LibXML
cpan -i XML::Atom
cpan -i XML::RSS::LibXML
cpan -i Encode
cpan -i Term::Encoding
cpan -i File::HomeDir

これでCore Featuresの分はおしまい。次はその他のFeatureだ。
SSLeayの外部サイト接続のテストがしくるので、force installしてやる。

cpan
force install Net::SSLeay
force install Mac::Glue
exit

その他、自分が使うFeatureに必要なモジュールをインストール。

cpan -i Test::Pod
cpan -i Test::Pod::Coverage
cpan -i HTTP::Cookies::Mozilla
cpan -i Cache::FastMmap

cpan
force install Flickr::API
exit

cpan -i DateTime::Format::Epoch
cpan -i WWW::Mixi
cpan -i WWW::Babelfish
cpan -i Text::Emoticon
cpan -i Email::Address
cpan -i Lingua::ZH::HanDetect
cpan -i Text::Language::Guess
cpan -i Text::Hatena

cpan
force install Hatena::Keyword
exit

cpan -i Image::Info
cpan -i Text::Markdown
cpan -i IPC::Run
cpan -i Regexp::Common::profanity_us
cpan -i Date::Parse
cpan -i URI::Find

cpan
force install Mac::Growl
exit

cpan -i Mac::Files
cpan -i Mac::Speech
cpan -i DB_File
cpan -i Time::Duration::Parse
cpan -i Mac::Tie::PList
cpan -i Text::CSV_PP
cpan -i WWW::Mechanize
cpan -i Spiffy
cpan -i Test::Base

最後の方は面倒になって、自分が使いそうなモジュールだけインストールしたよ。とりあえず、これで使い始められるはず。
今日は遅いから、続きはまた明日。