plagger Subscription::LivedoorReaderをdebianでいれる
dh-make-perl --cpan JSON::Syck --build
したらエラー
きをとりなおして
rm -rf YAML-Syck-0.41/ dh-make-perl --cpan YAML::Syck --build dh-make-perl YAML-Syck-0.41/
詳しくエラー
Found: YAML-Syck 0.41 (libyaml-syck-perl arch=any) String found where operator expected at /home/hoge/plagger/YAML-Syck-0.41/Makefile.PL line 5, near "name 'YAML-Syck'" (Do you need to predeclare name?) String found where operator expected at /home/hoge/plagger/YAML-Syck-0.41/Makefile.PL line 6, near "all_from 'lib/YAML/Syck.pm'" (Do you need to predeclare all_from?) String found where operator expected at /home/hoge/plagger/YAML-Syck-0.41/Makefile.PL line 7, near "cc_inc_paths '.'" (Do you need to predeclare cc_inc_paths?) Error: syntax error at /home/hoge/plagger/YAML-Syck-0.41/Makefile.PL line 5, near "name 'YAML-Syck'" BEGIN not safe after errors--compilation aborted at /home/hoge/plagger/YAML-Syck-0.41/Makefile.PL line 8. Compilation failed in require at /usr/share/perl5/Module/Depends/Intrusive.pm line 76.
ほかのとくらべると括弧がないっぽいので
括弧つけまくった
その結果のMakefile.PL
use strict; use lib '.'; use inc::Module::Install; name( 'YAML-Syck'); all_from( 'lib/YAML/Syck.pm'); cc_inc_paths( '.'); cc_files (glob("*.c"), (-e 'Syck.c' ? () : 'Syck.c')); # cc_optimize_flags '-g3'; can_cc() or die "This module requires a C compiler"; include_deps( 'Test::More'); sign(); WriteAll();
まぁ編集
vi YAML-Syck-0.41/Makefile.PL
んで
cd YAML-Syck-0.41/ debuild cd .. dpkg -i libyaml-syck-perl*.deb
config.yaml
- module: Subscription::LivedoorReader config: username: hogeuser password: hogepassword mark_read: 1
これで登録したらやつ全部未読