Category : [
Linux,
自宅サーバ ]
April 27, 2006 23:00
TAG : [
Perl]
Permalink
現在、メインサーバ増強のため、
着々と代替サーバーを構築中なんですが、
自分の備忘録ということで、CPANの利用法を記しておきます。
CPANは、「Perlのモジュール」をインストールするときなどに使用します。
初めてCPANを利用する方は、
「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]
Policy on building prerequisites (follow, ask or ignore)? [ask]
Where is your gzip program? [/usr/bin/gzip]
Where is your tar program? [/usr/bin/tar]
Warning: unzip not found in PATH
Where is your unzip program? [/usr/bin/unzip]
Where is your make program? [/usr/bin/make]
Where is your lynx program? [/usr/bin/lynx]
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]
What is your favorite pager program? [less]
What is your favorite shell? [/bin/bash]
Parameters for the 'perl Makefile.PL' command? []
Parameters for the 'make' command? []
Parameters for the 'make install' command? [] 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
(1) China
(2) Hong Kong
(3) Indonesia
(4) Israel
(5) Japan
(6) Saudi Arabia
(7) Singapore
(8) South Korea
(9) Taiwan
(10) Thailand
Select your country (or several nearby countries) [] 5
(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
(3) ftp://ftp.kddlabs.co.jp/CPAN/
(4) ftp://ftp.meisei-u.ac.jp/pub/CPAN/
(5) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(6) ftp://ftp.u-aizu.ac.jp/pub/lang/perl/CPAN/
(7) ftp://mirror.nucba.ac.jp/mirror/Perl/
Select as many URLs as you like [] 1
Enter another URL or RETURN to quit: []
とまぁ、ほとんどEnterの連打ですね(笑)
その後、同様に、
perl -MCPAN -e shell
と打つと、
>
のようにプロンプトが出てきますので、
>install Bundle::CPAN
>install Net::DNS
のようにして、必要なモジュールをインストールします。
Randal L.Schwartz Tom Phoenix ドキュメントシステム
オライリー・ジャパン (2003/12)
売り上げランキング: 11,381
おすすめ度の平均:


初めてのPerlというわりには

勉強になります
エリック フォスター・ジョンソン Eric Foster‐Jonson アークシンクタンク 三島 俊司
翔泳社 (1998/12)
売り上げランキング: 111,787
おすすめ度の平均:


「本物」のPerlへの入門書

Perlを使いこなす。