Click here to get back home

HTML::Mason, mod_perl on Win32 w/ActiveState Perl

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML::Mason, mod_perl on Win32 w/ActiveState Perl Michael Powe 12-21-2004
Posted by Michael Powe on December 21, 2004, 11:46 pm
Please log in for more thread options
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>
<!-- 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.


Posted by Michael Powe on December 22, 2004, 9:39 pm
Please log in for more thread options

Michael> Summary: I can't get it to work. Windows XP Pro SP1


fixed using the suggestions at

http://www.masonhq.com/?ApacheModPerl2OnWin32

I found that the installation of mod_perl/Mason on Apache 1.3.33
worked OOB, also, without any special tricks required.

mp

--
'cat' is not recognized as an internal or external command,
operable program or batch file.


Posted by Michael Powe on December 28, 2004, 5:34 am
Please log in for more thread options
If you are planning a vegetarian meal. Or you could just as well use veal -
after all, you have to be careful - Sicilians are touchy about their young
family members...

6 newborn or veal cutlets
Tomato gravy (see index)
4 cups mozzarella, 1cup parmesan, 1cup romano
Seasoned bread crumbs mixed with
parmesan
romano
salt
pepper
oregano
garlic powder
chopped parsley
Flour
eggwash (eggs and milk)
Peanut oil for frying.

Pound the cutlets.
Dredge in flour, eggs, then the bread crumb mixture.
Fry till golden brown in 350° peanut oil.
In a baking pan, place a layer of gravy,
then one of meat, gravy, and cheese.
Another layer each of meat, gravy, and cheese.
Then bake at 350° for 45 minutes.
Serve on hot pasta with romano cheese.



Southern Fried Small-fry

Tastes like fried chicken, which works just as well.
In fact you may want to practice cutting up whole chickens
for frying before you go for the real thing.
Whole chicken is much more efficien




Posted by Michael Powe on December 28, 2004, 6:07 am
Please log in for more thread options
peanut oil till crispy golden brown, drain on paper towels.



Lemon Neonate

Turkey serves just as well, and in fact even looks a bit like a
well-dressed baby. By the time you turn the child?s breast into
cutlets, it will be indistinguishable. The taste of young human,
although similar to turkey (and chicken) often can be wildly
different depending upon what he or she has consumed during its
10 to 14 months of life...

4 well chosen cutlets (from the breasts of 2 healthy neonates)
2 large lemons (fresh lemons always, if possible)
Olive oil
Green onions
Salt
pepper
cornstarch
neonate stock (chicken, or turkey stock is fine)
garlic
parsley
fresh cracked black pepper

Season and sauté the cutlets in olive oil till golden brown, remove.
Add the garlic and onions and cook down a bit.
Add some lemon juice and some zest, then de-glaze with stock.
Add a little cornstarch (dissolved in cold water) to the sauce.
You are just about there, Pour the sauce over the cutlets,
top with parsley, lemon slices and cracked pepper.
Serve with spinach salad, macaroni and cheese (homemade) and iced tea...



Spaghetti with Real Itali




Similar ThreadsPosted
HTML::Mason March 7, 2005, 7:45 am
Trying to get HTML::Mason running, stuff out-of-date? October 6, 2004, 5:28 pm
HTML::Mason handle nonexistent directories June 14, 2005, 12:45 pm
Installation error for module in CentOS 5.0 for HTML::Mason June 18, 2007, 10:03 pm
trying to use HTML::Mason on apache2 but scripts come up as plain text in the browser October 23, 2006, 1:50 am
CGI.pm and ModPerl::Registry December 21, 2007, 11:20 pm
modperl and apache handlers December 28, 2004, 5:38 am
CPAN conflict issue - CGI.pm vs ModPerl::Registry September 25, 2006, 12:42 pm
Mason install problems. July 26, 2004, 2:54 pm
Mason sharing variables, rookie alert :) July 13, 2006, 10:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap