HTML::Mason, mod_perl on Win32 w/ActiveState Perl
From: Michael Powe (michael+gnus_at_trollope.org)
Date: 12/22/04
- Previous message: e r m: "Re: Cygwin and SSL"
- Next in thread: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Dec 2004 22:46:51 -0500
Summary: I can't get it to work.
Windows XP Pro SP1
I've installed the mod_perl from
http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd.
I've made the necessary changes to httpd.conf so that it loads.
LoadFile C:/Perl/bin/perl58.dll
LoadModule perl_module modules/mod_perl.so
Apache service monitor shows "Apache/2.0.52(Win32) mod_perl/1.99_18
Perl/v5.8.0"
Installed HTML::Mason via the AS PPM.
This test script from the O'Reilly Mason book runs:
8<------------------>8
#!perl
use strict;
use HTML::Mason;
my $interp = HTML::Mason::Interp->new( );
my $comp = $interp->make_component(comp_source => <<'END');
Greetings, <% ("Earthlings", "Martians")[rand 2] %>
END
$interp->exec($comp);
8<------------------>8
Try to execute this page in a browser:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Final//EN">
<html> <head>
<title>Handshake Mason test</title>
</head>
<body>
% my $planet = "World";
Hello, <% $planet %>!
<hr>
<address><a href="mailto: michael+web@trollope.org">Webmaster</a></address>
<!-- hhmts start --> Last modified: Tue Dec 21 19:44:21 Eastern Standard Time 2004 <!-- hhmts end -->
</body> </html>
results in the error
failed to resolve handler `HTML::Mason::ApacheHandler': Can't locate
Apache/Constants.pm
okay, so Randy Kobes has a hack to fix this and I applied it, only to
generate yet another error,
failed to resolve handler `HTML::Mason::ApacheHandler': Can't locate
mod_perl/Const.pm
At that point, I decided I didn't want to go down the slope by
continuing to modify ApacheHandler.pm.
I tried installing HTML::Mason by hand. I uninstalled and reinstalled
mod_perl.
I've tried so many combinations I've lost track of them and most of a
day trying them.
I'm sure there must be something simple I'm missing ... if someone
could point it out to me, I would be most grateful.
Thanks.
mp
-- 'cat' is not recognized as an internal or external command, operable program or batch file.
- Previous message: e r m: "Re: Cygwin and SSL"
- Next in thread: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Reply: Michael Powe: "Re: HTML::Mason, mod_perl on Win32 w/ActiveState Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|