I have an on-line server obtained circa 2002 with RHEL3 running /usr/bin/perl 5.8.0. I just tried to install a new module as root as per my usual practice since then, running "/usr/bin/cpan" then "install String::Random". I'd just done that on my local PC without any problems, but on my server it came back with reams of output and ultimately failed.
Something seems to have happened to my cpan installation, as I now get muliple failures when trying to install anything, e.g. "install Bundle::CPAN" - including apparent make failures. So I tried to re-install cpan by running "/usr/bin/cpan" then "o conf init" and manually choosing all the defaults. But that failed with the final output being
Looking for CPAN mirrors near you (please be patient) Catching error:
+ "Can't locate Time/HiRes.pm in \@INC (\@INC contains: /usr/lib/perl5
+/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/si
+te_perl/5$ CPAN::shell() called at /usr/lib/perl5/5.8.0/App/Cpan.pm l
+ine 338 App::Cpan::_process_options('App::Cpan') called at /usr/lib/p
+erl5/5.8.0/App/Cpan.pm line 421 App::Cpan::run('App::Cpan') called at
+ /usr/bin/cpan line 12
So something seems hosed, but I don't know enough to deal with this. Is there some different/better way to create a "clean" cpan install??
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.