Contents
Install Plagger on Windows
■Plagger Windows
- Greenbear Diary - WindowsにPlaggerを入れる手順 (2006年年末版) http://mono.kmc.gr.jp/~yhara/d/?date=20061211
■Install ActivePerl
- http://downloads.activestate.com/ActivePerl/Windows/5.8/
- ppm3の入っている5.8.7.815をdownload
- http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.815-MSWin32-x86-211909.msi
% wget -c http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.815-MSWin32-x86-211909.msi
- ActivePerl-5.8.7.815-MSWin32-x86-211909.msiを実行
- Next→I accept→Next→Next→Next→Install→Finish
■Check ActivePerl
- コマンドプロンプトを立ち上げ直す
C:\>perl -v This is perl, v5.8.7 built for MSWin32-x86-multi-thread (with 14 registered patches, see perl -V for more detail) Binary build 815 [211909] provided by ActiveState http://www.ActiveState.com ActiveState is a division of Sophos. Built Nov 2 2005 08:44:52
■Install Plagger via ppm
C:\>ppm ppm> rep add tcool http://ppm.tcool.org/server/ppmserver.cgi?urn:PPMServer Repositories: [1] ActiveState Package Repository [2] tcool ppm> rep up tcool Repositories: [1] tcool [2] ActiveState Package Repository ppm> install Plagger
- いろいろ質問してくるが,適宜「y」と答える
Successfully installed Plagger version 0.7.17 in ActivePerl 5.8.7.815. ppm> q
■Check install
C:\>plagger Plagger::ConfigLoader->load: C:\Perl\bin\config.yaml: No such file or directory at C:/Perl/site/lib/Plagger.pm line 47
というエラーが表示されるので正しいのかな.
■Install assets
% cd c:/work % wget http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Plagger-0.7.17.tar.gz % tar xzf Plagger-0.7.17.tar.gz % cd Plagger-0.7.17 % mv assets c:/Perl/site/lib/Plagger
■Make Sample Config File
- 下記内容を,c:\work\sample.yaml として保存
global:
plugin_path:
- c:/Perl/site/lib/Plagger/Plugin/
assets_path: c:/Perl/site/lib/Plagger/assets
timezone: Asia/Tokyo
log:
level: info
plugins:
- module: Subscription::Config
config:
feed:
- url: http://d.hatena.ne.jp/keyworddiary/Plagger?mode=rss
- module: Publish::Gmail
config:
mailto: your-mail-address@example.com
mailroute:
via: smtp
host: (プロバイダのメールサーバのアドレス)
■Use it
C:\> cd work C:\work>plagger -c sample.yaml Plagger::Plugin::Aggregator::Simple [info] Fetch http://d.hatena.ne.jp/keyworddiary/Plagger?mode=rss Plagger::Plugin::Aggregator::Simple [info] Aggregate http://d.hatena.ne.jp/keyworddiary/Plagger?mode=rss success: 20 entries. Plagger::Plugin::Publish::Gmail [info] Sending はてなダイアリー - 「Plagger」を含む日記 to your-mail-address@example.com
- メールボックスを確認する→届いてた!
Last modified: 2007-02-24