Check @INC to make sure it has something in it. ExtUtils::MakeMaker and ExtUtils::Command comes with perl, so either someone removed it, it's somewhere that perl isn't looking, or, for some odd reason, it can't compile. You may think that last one is far-fetched, but it was my problem once. I tend not to touch the core modules (or write wrappers to overload them if I really need to), but other people think they can edit any file for any reason.

If this is your server and you can, you might want to simply reinstall perl from the source. People have different feelings about this, but I never trust a third-party compilation of perl. I always do it myself.

If this isn't your server, they may not want you to install modules, so they (re)moved the ExtUtils::* stuff. That's dumb, but that's just my opinion.

If you really don't want to do that much work and just want to solve this problem for now and get on with life, you can just copy the CGI.pm file to where you want it, along with the CGI/ directory. The Makefile.PL for CGI.pm doesn't do anything fancy. Wherever you put the files needs to show up in @INC somehow.

--
brian d foy <bdfoy@cpan.org>

In reply to Re: Moved to a new server, Need help installing perl modules! by brian_d_foy
in thread Moved to a new server, Need help installing perl modules! by Anonymous Monk

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.