perl-Time-HiRes seems to be a missing requirement when configuring cpan for the first time.<br />
<br />
[<a href="mailto:root@centos7">root@centos7</a> ~]# cpan<br />
Sorry, we have to rerun the configuration dialog for CPAN.pm due to<br />
some missing parameters. Configuration will be written to<br />
<</root/.cpan/CPAN/MyConfig.pm>><br />
<br />
<br />
CPAN.pm requires configuration, but most of it can be done automatically.<br />
If you answer 'no' below, you will enter an interactive dialog for each<br />
configuration option instead.<br />
<br />
Would you like to configure as much as possible automatically? [yes]<br />
<br />
<install_help><br />
<br />
Warning: You do not have write permission for Perl library directories.<br />
<br />
To install modules, you need to configure a local Perl library directory or<br />
escalate your privileges. CPAN can help you by bootstrapping the local::lib<br />
module or by configuring itself to use 'sudo' (if available). You may also<br />
resolve this problem manually if you need to customize your setup.<br />
<br />
What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')<br />
[local::lib]<br />
<br />
Autoconfigured everything but 'urllist'.<br />
<br />
Now you need to choose your CPAN mirror sites. You can let me<br />
pick mirrors for you, you can select them from a list or you<br />
can enter them by hand.<br />
<br />
Would you like me to automatically choose some CPAN mirror<br />
sites for you? (This means connecting to the Internet) [yes]<br />
Looking for CPAN mirrors near you (please be patient)<br />
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /root) at /usr/share/perl5/Net/Ping.pm line 313.
↧