I'm not sure if this is the correct place to ask this question, as I'm not specifically seeking wisdom in Perl, but wisdom in CPAN. Even more specifically, CPAN 5.8.8:

I'm trying to install any module. Behold:

cpan[1]> install IMAP::Client CPAN: Storable loaded ok (v2.16) Going to read '/root/.cpan/Metadata' Database was generated on Mon, 12 Jul 2010 18:27:01 GMT CPAN: Time::HiRes loaded ok (v1.86) Warning: no success downloading '/root/.cpan/sources/authors/01mailrc. +txt.gz.tmp9816'. Giving up on it. at /usr/lib64/perl5/5.8.8/CPAN/FTP. +pm line 837 CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0xc8a820)', 'authors +/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp98 +16', 'HASH(0x78897a0)') called at /usr/lib64/perl5/5.8.8/CPAN/FTP.pm +line 515 CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef', 'ARRAY(0x +c8a820)', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01m +ailrc.txt.gz.tmp9816', 'HASH(0x78897a0)') called at /usr/lib64/perl5/ +5.8.8/CPAN/FTP.pm line 442 CPAN::FTP::localize('CPAN::FTP', 'authors/01mailrc.txt.gz', '/ +root/.cpan/sources/authors/01mailrc.txt.gz', 3) called at /usr/lib64/ +perl5/5.8.8/CPAN/Index.pm line 225 CPAN::Index::reload_x('CPAN::Index', 'authors/01mailrc.txt.gz' +, 'authors/01mailrc.txt.gz', 'undef') called at /usr/lib64/perl5/5.8. +8/CPAN/Index.pm line 84 CPAN::Index::reload('CPAN::Index') called at /usr/lib64/perl5/ +5.8.8/CPAN.pm line 955 CPAN::exists('CPAN=HASH(0x1343dd0)', 'CPAN::Module', 'IMAP::Cl +ient') called at /usr/lib64/perl5/5.8.8/CPAN/Shell.pm line 1243 CPAN::Shell::expandany('CPAN::Shell', 'IMAP::Client') called a +t /usr/lib64/perl5/5.8.8/CPAN/Shell.pm line 1639 CPAN::Shell::rematein('CPAN::Shell', 'install', 'IMAP::Client' +) called at /usr/lib64/perl5/5.8.8/CPAN/Shell.pm line 1935 CPAN::Shell::__ANON__('CPAN::Shell', 'IMAP::Client') called at + /usr/lib64/perl5/5.8.8/CPAN.pm line 375 eval {...} called at /usr/lib64/perl5/5.8.8/CPAN.pm line 372 CPAN::shell() called at /usr/bin/cpan line 198 Client not fully configured, please proceed with configuring. You have not configured a urllist and do not allow connections to the internet to get a list of mirrors. If you wish to get a list of CPAN mirrors to pick from, use this command o conf init connect_to_internet_ok urllist If you do not wish to get a list of mirrors and would prefer to set your urllist manually, use just this command instead o conf init urllist Warning: no success downloading '/root/.cpan/sources/authors/01mailrc. +txt.gz.tmp9816'. Giving up on it. at /usr/lib64/perl5/5.8.8/CPAN/FTP. +pm line 837 CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0xc8a820)', 'authors +/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp98 +16', 'HASH(0x7889770)') called at /usr/lib64/perl5/5.8.8/CPAN/FTP.pm +line 515 CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef', 'ARRAY(0x +c8a820)', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01m +ailrc.txt.gz.tmp9816', 'HASH(0x7889770)') called at /usr/lib64/perl5/ +5.8.8/CPAN/FTP.pm line 442 CPAN::FTP::localize('CPAN::FTP', 'authors/01mailrc.txt.gz', '/ +root/.cpan/sources/authors/01mailrc.txt.gz', 3) called at /usr/lib64/ +perl5/5.8.8/CPAN/Index.pm line 225 CPAN::Index::reload_x('CPAN::Index', 'authors/01mailrc.txt.gz' +, 'authors/01mailrc.txt.gz', 'undef') called at /usr/lib64/perl5/5.8. +8/CPAN/Index.pm line 84 CPAN::Index::reload('CPAN::Index') called at /usr/lib64/perl5/ +5.8.8/CPAN.pm line 692 CPAN::all_objects('CPAN=HASH(0x1343dd0)', 'CPAN::Distribution' +) called at /usr/lib64/perl5/5.8.8/CPAN/Shell.pm line 1046 CPAN::Shell::failed('CPAN::Shell', 1, 1) called at /usr/lib64/ +perl5/5.8.8/CPAN.pm line 413 eval {...} called at /usr/lib64/perl5/5.8.8/CPAN.pm line 413 CPAN::shell() called at /usr/bin/cpan line 198 cpan[2]> o conf init connect_to_internet_ok urllist If you have never defined your own C<urllist> in your configuration then C<CPAN.pm> will be hesitant to use the built in default sites for downloading. It will ask you once per session if a connection to the internet is OK and only if you say yes, it will try to connect. But to avoid this question, you can choose your favorite download sites once and get away with it. Or, if you have no favorite download sites answer yes to the following question. <connect_to_internet_ok> If no urllist has been chosen yet, would you prefer CPAN.pm to connect to the built-in default sites without asking? (yes/no)? [no] yes You have no /root/.cpan/sources/MIRRORED.BY I'm trying to fetch one Warning: no success downloading '/root/.cpan/sources/MIRRORED.BY.tmp98 +16'. Giving up on it. at /usr/lib64/perl5/5.8.8/CPAN/FTP.pm line 837 CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0xc8a820)', 'MIRRORE +D.BY', '/root/.cpan/sources/MIRRORED.BY.tmp9816', 'HASH(0xf03690)') c +alled at /usr/lib64/perl5/5.8.8/CPAN/FTP.pm line 515 CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef', 'ARRAY(0x +c8a820)', 'MIRRORED.BY', '/root/.cpan/sources/MIRRORED.BY.tmp9816', ' +HASH(0xf03690)') called at /usr/lib64/perl5/5.8.8/CPAN/FTP.pm line 44 +2 CPAN::FTP::localize('CPAN::FTP', 'MIRRORED.BY', '/root/.cpan/s +ources/MIRRORED.BY', 3) called at /usr/lib64/perl5/5.8.8/CPAN/FirstTi +me.pm line 1424 CPAN::FirstTime::conf_sites() called at /usr/lib64/perl5/5.8.8 +/CPAN/FirstTime.pm line 1151 CPAN::FirstTime::init('/usr/lib64/perl5/5.8.8/CPAN/Config.pm', + 'args', 'ARRAY(0x8292d0)') called at /usr/lib64/perl5/5.8.8/CPAN/Han +dleConfig.pm line 577 CPAN::HandleConfig::load('CPAN::HandleConfig', 'doit', 1, 'arg +s', 'ARRAY(0x8292d0)') called at /usr/lib64/perl5/5.8.8/CPAN/HandleCo +nfig.pm line 440 CPAN::HandleConfig::init('CPAN::HandleConfig', 'args', 'ARRAY( +0x8292d0)') called at /usr/lib64/perl5/5.8.8/CPAN/HandleConfig.pm lin +e 126 CPAN::HandleConfig::edit('CPAN::HandleConfig', 'init', 'connec +t_to_internet_ok', 'urllist') called at /usr/lib64/perl5/5.8.8/CPAN/S +hell.pm line 393 CPAN::Shell::o('CPAN::Shell', 'conf', 'init', 'connect_to_inte +rnet_ok', 'urllist') called at /usr/lib64/perl5/5.8.8/CPAN.pm line 37 +5 eval {...} called at /usr/lib64/perl5/5.8.8/CPAN.pm line 372 CPAN::shell() called at /usr/bin/cpan line 198 Client not fully configured, please proceed with configuring. You have not configured a urllist for CPAN mirrors. Configure it with o conf init urllist cpan[3]> o conf init urllist cpan[4]>

What am I doing wrong here?


In reply to CPAN will not 'o conf init urllist' by jedihawk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.