cpan[1]> o conf init Use of uninitialized value $_ in transliteration (tr///) at D:/usr/lib/File/Spec /Win32.pm line 141. Use of uninitialized value $_ in pattern match (m//) at D:/usr/lib/File/Spec/Win 32.pm line 143. Use of uninitialized value $_ in transliteration (tr///) at D:/usr/lib/File/Spec /Win32.pm line 141. Use of uninitialized value $_ in pattern match (m//) at D:/usr/lib/File/Spec/Win 32.pm line 143. CPAN is the world-wide archive of perl resources. It consists of about 300 sites that all replicate the same contents around the globe. Many countries have at least one CPAN site already. The resources found on CPAN are easily accessible with the CPAN.pm module. If you want to use CPAN.pm, lots of things have to be configured. Fortunately, most of them can be determined automatically. If you prefer the automatic configuration, answer 'yes' below. If you prefer to enter a dialog instead, you can answer 'no' to this question and I'll let you configure in small steps one thing after the other. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Would you like me to configure as much as possible automatically? [yes]
「Use of uninitialized value」というエラーが出ることがあります(ここでは出ています)が、一応は無害なのでここでは無視します。
最後の質問は「できるだけ自動的に設定しますか?」と訊かれています。
[yes]は、省略してEnterを押したときに「yes」と入力されたことにする、という程度の意味です。
ここでは、ひとまず、プログラムに任せて設定してもらいます。
1 2 3 4
Autoconfigured everything but 'urllist'. Please call 'o conf init urllist' to configure your CPAN server(s) now! commit: wrote 'D:\usr\lib/CPAN/Config.pm' cpan[2]>
cpan[2]> o conf init urllist Use of uninitialized value $_ in transliteration (tr///) at D:/usr/lib/File/Spec /Win32.pm line 141. Use of uninitialized value $_ in pattern match (m//) at D:/usr/lib/File/Spec/Win 32.pm line 143. Use of uninitialized value $_ in transliteration (tr///) at D:/usr/lib/File/Spec /Win32.pm line 141. Use of uninitialized value $_ in pattern match (m//) at D:/usr/lib/File/Spec/Win 32.pm line 143. Found D:\usr\cpan\sources\MIRRORED.BY as of Tue May 6 10:14:04 2008 I'd use that as a database of CPAN sites. If that is OK for you, please answer 'y', but if you want me to get a new database now, please answer 'n' to the following question. Shall I use the local database in D:\usr\cpan\sources\MIRRORED.BY? [y] Now we need to know where your favorite CPAN sites are located. Push a few sites onto the array (just in case the first on the array won't work). If you are mirroring CPAN to your local workstation, specify a file: URL. First, pick a nearby continent and country by typing in the number(s) in front of the item(s) you want to select. You can pick several of each, separated by spaces. Then, you will be presented with a list of URLs of CPAN mirrors in the countries you selected, along with previously selected URLs. Select some of those URLs, or just keep the old list. Finally, you will be prompted for any extra URLs -- file:, ftp:, or http: -- that host a CPAN mirror. (1) Africa (2) Asia (3) Central America (4) Europe (5) North America (6) Oceania (7) South America (8) (edit previous picks) Select your continent (or several nearby continents) [8] 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 (15) (edit previous picks) Select your country (or several nearby countries) [15] 5 (1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/ (previous pick) (2) ftp://ftp.jaist.ac.jp/pub/CPAN/ (previous pick) (3) ftp://ftp.kddilabs.jp/CPAN/ (previous pick) (4) ftp://ftp.nara.wide.ad.jp/pub/CPAN/ (previous pick) (5) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/ (previous pick) (6) ftp://ftp.u-aizu.ac.jp/pub/CPAN (previous pick) (7) ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/ (previous pick) (8) http://ppm.activestate.com/CPAN (previous pick) (9) http://cpan.perl.org (previous pick) Select as many URLs as you like (by number), put them on one line, separated by blanks, hyphenated ranges allowed e.g. '1 4 5' or '7 1-4 8' (or just hit RETURN to keep your previous picks) [1 2 3 4 5 6 7 8 9] 1-9 Enter another URL or RETURN to quit: [] New set of picks: ftp://ftp.dti.ad.jp/pub/lang/CPAN/ ftp://ftp.jaist.ac.jp/pub/CPAN/ ftp://ftp.kddilabs.jp/CPAN/ ftp://ftp.nara.wide.ad.jp/pub/CPAN/ ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/ ftp://ftp.u-aizu.ac.jp/pub/CPAN ftp://ftp.yz.yamagata-u.ac.jp/pub/lang/cpan/ http://ppm.activestate.com/CPAN http://cpan.perl.org Please remember to call 'o conf commit' to make the config permanent! cpan[3]>