Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I just moved to a new server and I am having problems installing perl modules.
I am trying to install cgi.pm when I do I get an error. Can't locate ExtUtils/MakeMaker.pm
So.. I tried to install that and I get error
can't locate ExtUtils/Command.pm
that is where I am stuck I dont know how to install command.pm or even where I get it.
I searched on CPAn and it seems that it is part of makemaker?
This is the first time ive tried installing modules before so im probably just being dumb.
Please help, Thanks.
  • Comment on Moved to a new server, Need help installing perl modules!

Replies are listed 'Best First'.
Re: Moved to a new server, Need help installing perl modules!
by jZed (Prior) on Feb 26, 2005 at 21:16 UTC
    CGI.pm (must be upper-cased) is part of the perl distribution, you shouldn't have to install it separately. Try to just use it in a module (use CGI;) with the proper upper-casing. If that doesn't solve things, you'll need to tell us what OS you are on and whether you are using CPAN.pm, CPANPLUS.pm, ppm, apt-get, rpm, or just plain make since those are all possible ways to install a module.
Re: Moved to a new server, Need help installing perl modules!
by brian_d_foy (Abbot) on Feb 27, 2005 at 00:28 UTC

    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>
Re: Moved to a new server, Need help installing perl modules!
by Anonymous Monk on Feb 26, 2005 at 21:23 UTC
    This new server giving me a headache getting it started. When I try running my script I get 403 error, forbidden you are not authorized to view this page. The script has execute permissions. When I look at perl module list there is only Net::SSLeay in the list. This is red hat linux
      In some versions of Red Hat Linux the CGI module is in a separate RPM called perl-CGI. Is that installed on the server?
Re: Moved to a new server, Need help installing perl modules!
by chanio (Priest) on Feb 27, 2005 at 20:34 UTC