SPUG: installing and configure Mason (Help!!!)

CJ Collier cjcollier at colliertech.org
Tue Sep 28 17:18:05 CDT 2004


I recommend getting the RPMs of mod_perl and apache 1.3 rather than
building from source.  1) it's more difficult to build from source, 2)
Redhat probably patched it to the hilt, and their patched versions
likely work better with their operating environment.

Cheers,

C.J.


On Tue, 2004-09-28 at 13:54 -0700, Adam Monsen wrote:
> Luis,
> 
> CPAN is asking you where the Apache httpd source code is. You may not
> have the source code. Fedora core doesn't include the source for
> Apache by default. That, and it's probably patched to the hilt by the
> RPM packagers.
> 
> I recommend building and installing Apache 1.3, mod_perl 1.x, *THEN*
> install the latest version of HTML::Mason via CPAN. It is fairly
> straightforward. Start here:
> 
> http://perl.apache.org/docs/1.0/guide/install.html#A_Summary_of_a_Basic_mod_perl_Installation
> 
> As for Apache 2 / mod_perl 2...
> 
> I've never configured Mason with Apache 2/mod_perl 2, and I don't
> think Mason was really designed to run with Apache 2/mod_perl 2. Some
> of the Amazon.com guys on this list might know for sure... I've not
> spent much time with Mason.
> 
> However, I did find these two (hopefully) helpful links:
> http://www.masonhq.com/?ApacheModPerl2
> http://www.masonhq.com/?MasonAndFedora
> 
> Hope this helps,
> -Adam
> 
> On Tue, 28 Sep 2004 13:08:30 -0700, Luis Medrano <lmzaldivar at mac.com> wrote:
> > List,
> > 
> > I did this:
> > perl -MCPAN -e'install Apache::Constants'
> > but now showing this:
> > 
> > Enter `q' to stop search
> > Please tell me where I can find your apache src
> >  [../apache_x.x/src]
> > 
> > how can I find apache path?
> > 
> > Thanks,
> > Luis
> > 
> > On Tuesday, September 28, 2004, at 12:52PM, Tom Heady <tom at heady.org> wrote:
> > 
> > >It seems you are missing the Apache::Constants module:
> > >
> > >perl -MCPAN -e'install Apache::Constants'
> > >
> > >
> > >Tom
> > 
> > 
> > >
> > >> List,
> > >>
> > >> I install Mason using perl -MCPAN -e shell in a fedora core 2 box. I
> > >> follow the instructions of:
> > >> http://www.masonhq.com/docs/manual/Mason.html#installation
> > >>
> > >> adding this lines one httpd.conf:
> > >>     PerlModule HTML::Mason::ApacheHandler
> > >>
> > >>     <Location />
> > >>         SetHandler perl-script
> > >>         PerlHandler HTML::Mason::ApacheHandler
> > >>     </Location>
> > >>
> > >> and I reboot apache and I got this error:
> > >>
> > >> httpd -k start
> > >> [Tue Sep 28 14:03:44 2004] [error] Can't locate Apache/Constants.pm in
> > >> @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> > >> /usr/lib/perl5/5.8.0
> > >> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> > >> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> > >> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> > >> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
> > >> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 13.!BEGIN
> > >> failed--compilation aborted at
> > >> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
> > >> 13.!Compilation failed in require at (eval 1) line 3.!
> > >> [Tue Sep 28 14:03:44 2004] [error] Can't load Perl module
> > >> HTML::Mason::ApacheHandler for server domain.com:0, exiting...!
> > >>
> > >> _____________________________________________________________
> > >> Seattle Perl Users Group Mailing List
> > >> POST TO: spug-list at mail.pm.org  http://spugwiki.perlocity.org
> > >> ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
> > >> MEETINGS: 3rd Tuesdays, Location Unknown
> > >> WEB PAGE: http://www.seattleperl.org
> > >>
> > >
> > >
> > >
> > 
> > 
> > _____________________________________________________________
> > Seattle Perl Users Group Mailing List
> > POST TO: spug-list at mail.pm.org  http://spugwiki.perlocity.org
> > ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
> > MEETINGS: 3rd Tuesdays, Location Unknown
> > WEB PAGE: http://www.seattleperl.org
> > 
> 
> 
> 



More information about the spug-list mailing list