I have a very interesting problem... Our Linux box was rebuilt and Perl was re-installed. I am now trying to install the Perl modules our app needs via CPAN. I was not quite awake when I fired up the CPAN shell as a user instead of as root user. First command I ran was 'install Bundle::CPAN'. But I wasn't in as root user, only as lowly user with limited permissions. I saw a lot of script fly by my eyes, most would test, but none would install because of the limited permissions. D'oh! So I switch to root user, open up CPAN shell, go to run 'install Bundle::CPAN' and, well...
$ su root Password: # perl -MCPAN -e shell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support available (try 'install Bundle::CPAN') cpan> install Bundle::CPAN CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning: Cannot install Bundle::CPAN, don't know what it is. Try the command i /Bundle::CPAN/ to find objects with matching identifiers. cpan> i /Bundle::CPAN/ No objects found of any type for argument /Bundle::CPAN/ cpan>
Huh? Can anyone 'splain why this happened...? I have looked at the Metadata file and it looks ok, but then again I don't know what a *bad* Metadata file would look like. If anyone could shed some light on this I'd really appreciate this!

In reply to Cannot install CPAN (or any other modules) as root user!!! by ARiccela

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.