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

From: Michael Powe (michael+gnus_at_trollope.org)
Date: 12/22/04

  • Next message: Stephen Patterson: "Re: Converting email"
    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.
    

  • Next message: Stephen Patterson: "Re: Converting email"

    Relevant Pages

    • Re: Office Development BIG PROBLEM
      ... After installing Office i have insatlled the MSDE form OFFICE CD, ... Microsoft Office Access 2003 Developer Extensions ... If I close the VS and try to open the WordDOC it loads and an error ... "Office document customization is not available" ...
      (microsoft.public.dotnet.languages.csharp)
    • Browsing probs after XP SP2 install
      ... After installing the SP, we disabled the new XP firewall. ... We have a wireless network with a cable connection. ... old dialup setting that we use when we visit my mom. ... He cancels the dialing, and the page loads. ...
      (microsoft.public.windowsxp.perform_maintain)
    • Browsing probs after XP SP2 install
      ... After installing the SP, we disabled the new XP firewall. ... We have a wireless network with a cable connection. ... old dialup setting that we use when we visit my mom. ... He cancels the dialing, and the page loads. ...
      (microsoft.public.windowsxp.perform_maintain)
    • Re: Anyone happy with XP SP2?
      ... not made the necessary changes to their software. ... I had no problems installing SP-2 on my computers. ... > installing SP2 ... > this newsgroup reporting trouble-free installations. ...
      (microsoft.public.windowsxp.general)
    • Re: office 2007 read only documents
      ... | I am running windows XP and just recently installed office 2007, ... | downing SP2 onto my systems all documents come up read only. ... | far is to copy and paste the document to make any necessary changes ... | it was before installing SP2. ...
      (microsoft.public.officeupdate)