Mac にPlaggerをインストールしてみた

とくにこれといってターゲットは決まっていないけど,使ってみようとおもって入れてみんとす.

# perl -MCPAN -e shell
cpan> test Plagger

でうまく行くなら,install

cpan> install Plagger

私の環境では,YAML.pmなんかで文句言われた.

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

ので,以下のページを参考に,いくつかのモジュールを先にインストール.

cpan> install YAML
cpan> install Encode::Detect
cpan> install Data::Dump

その後,再度Plaggerのインストール

cpan> install Plagger

いくつか依存関係のある(もしくはオプションの)モジュールをインストールするかと聞かれるので,とりあえずデフォルトで回答.インストールは進んでる.


これで問題なく使えるようになりました.