木曜日, 4月 10, 2008

Catalystのインストール(その1)

Catalystをインストールする前に、CPANの環境構築をする。

ここによると、CPANとは、モジュールを簡単にインストールしてくれるシステム。

# yum install perl-CPAN
# perl -MCPAN -e shell
Are you ready for manual configuration? [yes]
CPAN build and cache directory? [/root/.cpan]
Cache size for build directory (in MB)? [10]
Perform cache scanning (atstart or never)? [atstart]
Cache metadata (yes/no)? [yes]
Your terminal expects ISO-8859-1 (yes/no)? [yes]
File to save your history? [/root/.cpan/histfile]
Number of lines to save? [100]
Policy on building prerequisites (follow, ask or ignore)? [ask]


Where is your gzip program? [/bin/gzip]
Where is your tar program? [/bin/tar]
Where is your unzip program? [/usr/bin/unzip]
Where is your make program? [/usr/bin/make]
Where is your links program? [/usr/bin/links]
Where is your wget program? [/usr/bin/wget]
Warning: ncftpget not found in PATH
Where is your ncftpget program? []
Warning: ncftp not found in PATH
Where is your ncftp program? []
Where is your ftp program? [/usr/bin/ftp]
Where is your gpg program? [/usr/bin/gpg]
What is your favorite pager program? [/usr/bin/less]
What is your favorite shell? [/bin/bash]


(一部略)


(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


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


(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.jaist.ac.jp/pub/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/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5' [] 2 3 4


Enter another URL or RETURN to quit: []


cpan> quit
Terminal does not support GetHistory.
Lockfile removed.


make testで使うTest::Podモジュールをインストールする。

# perl -MCPAN -e 'install Test::Pod'
# perl -MCPAN -e 'install Test::Pod::Coverage'


そして、いよいよCatalystのインストール。

# perl -MCPAN -e 'install Task::Catalyst'


※ インターネットで調べて出てきた以下のモジュール名では上手く行かなかった。
# perl -MCPAN -e 'install Bundle::Catalyst'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 10 Apr 2008 11:29:47 GMT
Warning: Cannot install Bundle::Catalyst, don't know what it is.
Try the command

i /Bundle::Catalyst/

to find objects with matching identifiers.


インストールの結果は、見事に失敗。orz

Failed Test                       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/unit_load_catalyst_test.t 1 256 3 1 33.33% 1
t/unit_utils_env_value.t 255 65280 5 9 180.00% 1-5
t/unit_utils_load_class.t 255 65280 14 27 192.86% 1-14
t/unit_utils_prefix.t 255 65280 9 17 188.89% 1-9
t/unit_utils_request.t 255 65280 5 9 180.00% 1-5
6 tests skipped.
Failed 63/71 test scripts, 11.27% okay. 1678/1709 subtests failed, 1.81% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


Failed Testっていうのが6つあがってるから、それらを中心に調べてみよう!


【参考】

0 件のコメント:

コメントを投稿