以下の抜粋のように設定しました。ほぼデフォルトの回答で OK です。
# perl -MCPAN -e shell
/usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.
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] no <== UTF-8をサポートしたターミナルなので
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/kerberos/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]
Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:
PREFIX=~/perl non-root users (please see manual for more hints)
Your choice: [] <== 何も指定しない
Parameters for the 'make' command?
Typical frequently used setting:
-j3 dual processor system
Your choice: [] <== 何も指定しない
Parameters for the 'make install' command?
Typical frequently used setting:
UNINST=1 to always uninstall potentially conflicting files
Your choice: [] UNINST=1 <== 指定する
Timeout for inactivity during Makefile.PL? [0]
Your ftp_proxy? <== 何も指定しない
Your http_proxy? <== 何も指定しない
Your no_proxy? <== 何も指定しない
(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 <== Asiaを選択
(1) China
(2) Hong Kong
(3) Indonesia
(4) Israel
(5) Japan
(6) Korea
(7) Republic of Korea
(8) Russia
(9) Singapore
(10) Taiwan
(11) Thailand
(12) Turkey
Select your country (or several nearby countries) [] 5 <== Japanを選択
(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.kddilabs.jp/CPAN/
(3) ftp://ftp.nara.wide.ad.jp/pub/CPAN/
(4) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(5) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(6) 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' [] 3 1 2 4 <== 近そうなところを選択
Enter another URL or RETURN to quit: [] <== 何も指定しない
これでCPANの設定は完了。これからshellモードで必要なモジュールをインストールしていく。
cpan> install Bundle::LWP
途中で質問されたりしますが、デフォルトの回答で OK です。
インストールが済んだたら有効にするために、一旦 exit します。
- historyなどが使えるように CPAN を更新する
cpan> install Bundle::CPAN
インストールが済んだたら有効にするために、一旦 exit します。
cpan> install Email::Send
cpan> install Template
cpan> install Email::MIME::Modifier
先に必要となるライブラリを yum でインストールしておく。
yum install mysql-devel.i386
CPANでインストールする前に mysql は起動しておく。
さらに一時的に root のパスワードをなしにしておく。
mysql> set password for root@localhost=password(''); <== パスワードをなしに
mysql> flush privileges; <== 即時反映させる
MySQLのためのモジュールをインストールする。
cpan> install DBD::mysql
インストールが完了したら、忘れないように root のパスワードを戻しておく。
mysql> set password for root@localhost=password('****');
mysql> flush privileges;
***********************************************************************
* REQUIRED MODULES *
***********************************************************************
* Bugzilla requires you to install some Perl modules which are either *
* missing from your system, or the version on your system is too old. *
* *
* The latest versions of each module can be installed by running the *
* commands below. *
***********************************************************************
COMMANDS:
/usr/bin/perl -MCPAN -e 'install Date::Format'
そこで
cpan> install Date::Format
今度は OPTIONAL MODULES が不足していたのみ。
This version of [[Bugzilla]] contains some variables that you may want to
change and adapt to your local settings. Please edit the file
./localconfig and rerun checksetup.pl.
と表示された。
最終更新:2008年01月14日 23:18