Subject: | CPAN doesn't bootstrap cleanly from zero. |
This is a completely clean install of blead on an account that doesn't
have a ~/.cpan:
$ cpan5.11.0
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] yes
...
<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]
Autoconfigured everything but 'urllist'.
Please call 'o conf init urllist' to configure your CPAN server(s) now!
commit: wrote
'/home/netbanx/Sandpit/snap5.9.x-/lib/perl5/5.11.0/CPAN/Config.pm'
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9351)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
cpan[1]> install Devel::Cover
CPAN: Storable loaded ok (v2.19)
You have not configured a urllist and did not allow to connect to the
internet. I will continue but it is very likely that we will face
problems. If this happens, please consider to call either
o conf init connect_to_internet_ok
or
o conf init urllist
Sleeping 5 seconds now.
You have not configured a urllist and did not allow to connect to the
internet. I will continue but it is very likely that we will face
problems. If this happens, please consider to call either
o conf init connect_to_internet_ok
or
o conf init urllist
Sleeping 5 seconds now.
Caught SIGINT, trying to continue
Warning: Cannot install Devel::Cover, don't know what it is.
Try the command
i /Devel::Cover/
to find objects with matching identifiers.
Got another SIGINT
I don't consider that that's a good result. What I think that it should
do at that point is
1: Not "Sleep for 5 seconds then repeat the error, ad nauseum"
2: Something like, go interactive, and ask "can I connect to the
internet?" and then "should I save this configuration change?"
The current behaviour is less than ideal. I have to hit control C,
copy-paste 2 commands that *it already told me about*
And, heck, *they are wrong*, because I *did what it said*:
cpan[3]> o conf init connect_to_internet_ok
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
Please remember to call 'o conf commit' to make the config permanent!
cpan[4]> o conf commit
commit: wrote
'/home/netbanx/Sandpit/snap5.9.x-/lib/perl5/5.11.0/CPAN/Config.pm'
cpan[5]> install Devel::Cover
You have not configured a urllist and did not allow to connect to the
internet. I will continue but it is very likely that we will face
problems. If this happens, please consider to call either
o conf init connect_to_internet_ok
or
o conf init urllist
Sleeping 5 seconds now.
Caught SIGINT, trying to continue
Warning: Cannot install Devel::Cover, don't know what it is.
Try the command
i /Devel::Cover/
to find objects with matching identifiers.
Got another SIGINT
[because, it seems, I have to quit and restart the CPAN shell for all
that to work]
I consider this an important bug because it leaves a bad first
impression on the new user.