M.C.P.C.

―むり・くり―プラスコミュニケーション(更新終了)


| トップページ |

2005年3月19日 06:04

Fedora Core 3 での、XML::RSS の入れ方。

このエントリーをはてなブックマークに追加 mixiチェック

この blog において、InDesign の自動組版例として、perl の XML::RSS を使って RSS をネットから Get して、InDesign の JavaScript にしてしまうサンプルを扱っていましたが、もしかしたら、ここでちゃんと XML::RSS を入れることを説明していなかったかもしれないと思ってメモ。ていうか、別のマシンに入れる機会があったのでそのときのログを載っけることにします。

Fedora Core 3 に、XML::RSS を入れることをやってみます。

[root@test ~]# perl -MCPAN -e shell
 
cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support enabled
 
cpan> install XML::RSS
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Thu, 03 Feb 2005 09:38:21 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Fri, 18 Mar 2005 09:42:09 GMT
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module XML::RSS
Running make for K/KE/KELLAN/XML-RSS-1.05.tar.gz
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/authors/id/K/KE/KELLAN/XML-RSS-1.05.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/authors/id/K/KE/KELLAN/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/K/KE/KELLAN/XML-RSS-1.05.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Deleting from cache: /root/.cpan/build/Compress-Zlib-1.34 (18.4>10.0 MB)
Deleting from cache: /root/.cpan/build/TermReadKey-2.30 (16.9>10.0 MB)
Deleting from cache: /root/.cpan/build/DBI-1.47 (16.4>10.0 MB)
Deleting from cache: /root/.cpan/build/DB_File-1.810 (12.7>10.0 MB)
Deleting from cache: /root/.cpan/build/DBD-mysql-2.9004 (12.1>10.0 MB)
Deleting from cache: /root/.cpan/build/Devel-PPPort-3.06 (11.5>10.0 MB)
Deleting from cache: /root/.cpan/build/ExtUtils-Constant-0.16 (10.2>10.0 MB)
XML-RSS-1.05/
XML-RSS-1.05/.cvsignore
XML-RSS-1.05/.releaserc
XML-RSS-1.05/Changes
XML-RSS-1.05/examples/
XML-RSS-1.05/examples/0.9/
XML-RSS-1.05/examples/0.9/create_rss.pl
XML-RSS-1.05/examples/0.9/linuxtoday.rdf
XML-RSS-1.05/examples/0.9/rss-0.9.dtd
XML-RSS-1.05/examples/0.9/slashdot.rdf
XML-RSS-1.05/examples/0.91/
XML-RSS-1.05/examples/0.91/create_rss_0.91.pl
XML-RSS-1.05/examples/0.91/create_rss_0.91_full.pl
XML-RSS-1.05/examples/0.91/fm.rdf
XML-RSS-1.05/examples/0.91/fm0.91.rdf
XML-RSS-1.05/examples/0.91/fm0.91_full.rdf
XML-RSS-1.05/examples/0.91/rss-0.91.dtd
XML-RSS-1.05/examples/0.91/xmlnews.rdf
XML-RSS-1.05/examples/1.0/
XML-RSS-1.05/examples/1.0/create_rss_1.0.pl
XML-RSS-1.05/examples/1.0/rss1.0.exotic.rdf
XML-RSS-1.05/examples/1.0/rss1.0.rdf
XML-RSS-1.05/examples/1.0/slash.rdf
XML-RSS-1.05/examples/1.0/update_rss_1.0.pl
XML-RSS-1.05/examples/convert.pl
XML-RSS-1.05/examples/create_rss_multiple.pl
XML-RSS-1.05/examples/freshmeat.rdf
XML-RSS-1.05/examples/README
XML-RSS-1.05/examples/rss2html.pl
XML-RSS-1.05/examples/rss_info.pl
XML-RSS-1.05/examples/update_rss.pl
XML-RSS-1.05/lib/
XML-RSS-1.05/lib/RSS.pm
XML-RSS-1.05/Makefile.PL
XML-RSS-1.05/MANIFEST
XML-RSS-1.05/MANIFEST.SKIP
XML-RSS-1.05/README
XML-RSS-1.05/t/
XML-RSS-1.05/t/.cvsignore
XML-RSS-1.05/t/0.9-generate.t
XML-RSS-1.05/t/0.9-parse.t
XML-RSS-1.05/t/0.91-parse.t
XML-RSS-1.05/t/1.0-generate.t
XML-RSS-1.05/t/1.0-parse-exotic.t
XML-RSS-1.05/t/1.0-parse.t
XML-RSS-1.05/t/2.0-generate.t
XML-RSS-1.05/t/2.0-parse.t
XML-RSS-1.05/t/auto_add_modules.t
XML-RSS-1.05/t/encode-output.t
XML-RSS-1.05/t/encoding.t
XML-RSS-1.05/t/load.t
XML-RSS-1.05/t/pod.t
XML-RSS-1.05/t/test_manifest
XML-RSS-1.05/t/version.t
XML-RSS-1.05/TODO
 
  CPAN.pm: Going to build K/KE/KELLAN/XML-RSS-1.05.tar.gz
 
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::Manifest 0.9 not found.
Writing Makefile for XML::RSS
---- Unsatisfied dependencies detected during [K/KE/KELLAN/XML-RSS-1.05.tar.gz] -----
    Test::Manifest
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] 
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module Test::Manifest
Running make for B/BD/BDFOY/Test-Manifest-1.11.tar.gz
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/authors/id/B/BD/BDFOY/Test-Manifest-1.11.tar.gz
Fetching with LWP:
  ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/authors/id/B/BD/BDFOY/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/B/BD/BDFOY/Test-Manifest-1.11.tar.gz ok
Test-Manifest-1.11/
Test-Manifest-1.11/Changes
Test-Manifest-1.11/lib/
Test-Manifest-1.11/lib/Manifest.pm
Test-Manifest-1.11/Makefile.PL
Test-Manifest-1.11/MANIFEST
Test-Manifest-1.11/META.yml
Test-Manifest-1.11/README
Test-Manifest-1.11/t/
Test-Manifest-1.11/t/0.load.t
Test-Manifest-1.11/t/1.get_test_files.t
Test-Manifest-1.11/t/1.make_test_manifest.t
Test-Manifest-1.11/t/99.pod.t
Test-Manifest-1.11/t/leading_space.t
Test-Manifest-1.11/t/trailing_space.t
Test-Manifest-1.11/test_manifest
 
  CPAN.pm: Going to build B/BD/BDFOY/Test-Manifest-1.11.tar.gz
 
Checking if your kit is complete...
Looks good
Writing Makefile for Test::Manifest
cp lib/Manifest.pm blib/lib/Test/Manifest.pm
Manifying blib/man3/Test::Manifest.3
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/0.load..................ok                                                 
t/1.get_test_files........ok                                                 
t/1.make_test_manifest....ok                                                 
t/99.pod..................skipped
        all skipped: Test::Pod 1.00 required for testing POD
t/leading_space...........ok                                                 
t/trailing_space..........ok                                                 
All tests successful, 1 test skipped.
Files=6, Tests=14,  1 wallclock secs ( 0.64 cusr +  0.08 csys =  0.72 CPU)
  /usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.5/Test/Manifest.pm
Installing /usr/share/man/man3/Test::Manifest.3
Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Test/Manifest/.packlist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
  /usr/bin/make install UNINST=1 -- OK
Running make for K/KE/KELLAN/XML-RSS-1.05.tar.gz
  Is already unwrapped into directory /root/.cpan/build/XML-RSS-1.05
 
  CPAN.pm: Going to build K/KE/KELLAN/XML-RSS-1.05.tar.gz
 
cp lib/RSS.pm blib/lib/XML/RSS.pm
Manifying blib/man3/XML::RSS.3
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib/lib', 'blib/arch')"
Test::Manifest::test_harness found [t/version.t t/encoding.t t/0.9-parse.t t/0.91-parse.t t/1.0-parse.t t/1.0-parse-exotic.t t/2.0-parse.t t/2.0-generate.t t/encode-output.t t/auto_add_modules.t]
t/version.............ok                                                     
t/encoding............ok                                                     
t/0.9-parse...........ok                                                     
t/0.91-parse..........ok                                                     
t/1.0-parse...........ok                                                     
t/1.0-parse-exotic....ok                                                     
t/2.0-parse...........ok                                                     
t/2.0-generate........ok                                                     
t/encode-output.......ok                                                     
t/auto_add_modules....ok                                                     
All tests successful.
Files=10, Tests=86,  2 wallclock secs ( 2.42 cusr +  0.22 csys =  2.64 CPU)
  /usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.5/XML/RSS.pm
Installing /usr/share/man/man3/XML::RSS.3
Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/XML/RSS/.packlist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
  /usr/bin/make install UNINST=1 -- OK
 
cpan> exit
Lockfile removed.
[root@test ~]# 
 

もし、ちゃんとインストールされなかった場合は、XML::Parser が入っていないと思うので、yum などで入れましょう

投稿 大野 義貴 [Linux] | |

トラックバック(0)

トラックバックURL: http://blog.dtpwiki.jp/MTOS/mt-tb.cgi/911

コメントする