[NTLUG:Discuss] Is a perl module installed?

kbrannen@gte.net kbrannen at gte.net
Mon Dec 16 15:07:30 CST 2002


Bobby Wrenn wrote:
> OK, either your method:
> 
>>   perl -MHTML::Template -e 'print "$HTML::Template::VERSION\n"'
>>
> 
> or cpan indicate all the modules I need are installed. However, when I
> try to load the web page I get:
> 
> The install instructions indicate:
> 
> PerlRequire /opt/rt2/bin/webmux.pl
> <Location />
>   SetHandler perl-script
>   PerlHandler RT::Mason
> </Location>
> 
> should be in my httpd.conf file. However, apache will not start with these line
> in commonhttpd.conf. The file in the PerlRequire line does exist and either that
> line or the PerlHandler RT::Mason entry are the lines that cause Apache to croak.
...

I'm not familiar with Mason (in any form) or with RT, but it'd be interesting 
(and probably useful :-) to see the actual error messages in your 
httpd-error.log (or whatever yours is called).  When apache fails to start, 
it's usually pretty good about saying why (though finding the root problem can 
  sometimes be a pain. :-)  I would expect some sort of error message from 
perl itself about can't find the module and it giving an @INC, and none of 
those paths listed contains the RT::Mason, which would indicate it's installed 
in the wrong place (or the @INC doesn't have the right entries).  Of course, 
it could be something else. :-)

You could also ask on the DFW Perl Mongers list (dfw-pm at gamma.hyperusa.com) as 
there are some pretty good web/perl people there.

Kevin





More information about the Discuss mailing list