Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

CPAN will not 'o conf init urllist'

by jedihawk (Initiate)
on Jul 14, 2010 at 21:16 UTC ( [id://849633]=perlquestion: print w/replies, xml ) Need Help??

jedihawk has asked for the wisdom of the Perl Monks concerning the following question:

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?

Replies are listed 'Best First'.
Re: CPAN will not 'o conf init urllist'
by Khen1950fx (Canon) on Jul 14, 2010 at 22:33 UTC
    I would get the current version of CPAN. Next, do the configuration manually. Then start the shell and enter
    o conf connect_to_internet_ok 1
    Then
    install Bundle::CPAN
    and
    install Bundle::LWP
Re: CPAN will not 'o conf init urllist'
by Anonymous Monk on Jul 14, 2010 at 21:24 UTC
    You don't have an internet connection :)
      No net connection? Haa! I wish it were that simple!
        Howdy!

        Is there a proxy server in the way? The http_proxy and ftp_proxy configuration settings can be relevant there. You may also need to set proxy_user to '' instead of leaving it undef.

        yours,
        Michael
        no success downloading means it is that simple
      I have the same issue here. On a server which indeed has an internet connection. I have no clue why cpan cannot connect. LWP::Agent is installed. wget, elinks, ssh can all connect to remote servers. There is no proxy, just a direct connection to the internet.
        This all started happening after my cpan client asked me if I would like to install the latest version of CPAN, so I did. Now I get the following:
        cpan[16]> o conf init urllist You have no /root/.cpan/sources/MIRRORED.BY I'm trying to fetch one Warning: no success downloading '/root/.cpan/sources/MIRRORED.BY.tmp12 +780'. Giving up on it. at /usr/lib/perl5/5.8.8/CPAN/FTP.pm line 837 CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x898d348)', 'MIRROR +ED.BY', '/root/.cpan/sources/MIRRORED.BY.tmp12780', 'HASH(0x8b750e8)' +) called at /usr/lib/perl5/5.8.8/CPAN/FTP.pm line 515 CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef', 'ARRAY(0x +898d348)', 'MIRRORED.BY', '/root/.cpan/sources/MIRRORED.BY.tmp12780', + 'HASH(0x8b750e8)') called at /usr/lib/perl5/5.8.8/CPAN/FTP.pm line 4 +42 CPAN::FTP::localize('CPAN::FTP', 'MIRRORED.BY', '/root/.cpan/s +ources/MIRRORED.BY', 3) called at /usr/lib/perl5/5.8.8/CPAN/FirstTime +.pm line 1424 CPAN::FirstTime::conf_sites() called at /usr/lib/perl5/5.8.8/C +PAN/FirstTime.pm line 1151 CPAN::FirstTime::init('/usr/lib/perl5/5.8.8/CPAN/Config.pm', ' +args', 'ARRAY(0x868dc54)') called at /usr/lib/perl5/5.8.8/CPAN/Handle +Config.pm line 577 CPAN::HandleConfig::load('CPAN::HandleConfig', 'doit', 1, 'arg +s', 'ARRAY(0x868dc54)') called at /usr/lib/perl5/5.8.8/CPAN/HandleCon +fig.pm line 440 CPAN::HandleConfig::init('CPAN::HandleConfig', 'args', 'ARRAY( +0x868dc54)') called at /usr/lib/perl5/5.8.8/CPAN/HandleConfig.pm line + 126 CPAN::HandleConfig::edit('CPAN::HandleConfig', 'init', 'urllis +t') called at /usr/lib/perl5/5.8.8/CPAN/Shell.pm line 393 CPAN::Shell::o('CPAN::Shell', 'conf', 'init', 'urllist') calle +d at /usr/lib/perl5/5.8.8/CPAN.pm line 375 eval {...} called at /usr/lib/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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://849633]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-05-19 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found