Re: FC2: anyone got mason working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 05, 2004 at 08:48:18PM -0400, Richard Welty wrote:
> can anyone provide any suggestions on getting mason working with
> fedora core 2? i previously asked this on the mason list and didn't
> get much beyond 1) looking for mod_perl2 rpms newer than the ones in
> the fc2 yum repositories and 2) try downgrading to apache 1.3.x and
> the corresponding mod_perl.

I saw your posts over there, but have been pretty busy.  I'll try to
help you over here.

> i have httpd and mod_perl up to date per the fc2 yum repositories
> 
> httpd-2.0.50-2.1
> mod_perl-1.99_12-2.1

I have both of those installed.  Additionally, do you have the beta
version of libapreq2 installed?  I ended up rolling my own RPM for it.

$ rpm -q libapreq2
libapreq2-2.03_04-1.rhfc1.cdg

> i've installed MasonX::Apache2Handler, and have the following
> in my httpd.conf (/web/na-motor/mason/ is the playpen i want
> to use to experiment with mason once i have it running):
> 
> PerlModule MasonX::Apache2Handler
> 
> #
> # Mason testing
> #
> <Location /web/na-motor/mason/>
>     SetHandler perl-script
>     PerlHandler MasonX::Apache2Handler
> </Location>

That's basically what I have,

<FilesMatch "\.html$">
    SetHandler perl-script
    PerlResponseHandler MasonX::Apache2Handler
</FilesMatch>

I don't think it matters if you use PerlHandler or PerlResponseHandler,
as I think mod_perl 2 is backwards-compatible in that respect.  I've
also set _MasonUser, _MasonGroup, _MasonDefaultDocumentRoot,
MasonCompRoot, and MasonDataDir in my httpd.conf.

> when i start httpd with this in place, i get:
> 
> [Mon Aug 02 21:50:21 2004] [error] Can't locate object method "get" via package "APR::Table" at /usr/lib/perl5/site_perl/5.8.3/MasonX/Apache2Handler.pm line 567.\nCompilation failed in require at (eval 1) line 3.\n
> [Mon Aug 02 21:50:21 2004] [error] Can't load Perl module MasonX::Apache2Handler for server www.krusty-motorsports.com:0, exiting...\n

That's possibly due to missing libapreq2, but I can't be sure.  I ran
Mason in CGI mode until I got around to packaging libapreq2.

> thanks for any suggestions on how to chase this down,

I hope I've been able to help.  Let me know if you want the spec file
for the RPM I built.

-chris

Attachment: pgpKAVNPAXbPC.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux