installing HTML::Mason

Jens Porup jens at cyber.com.au
Thu Aug 29 22:14:07 CDT 2002


Thanks very much for that Andrew.

I'm guessing you meant to reply to the list
so I'm forwarding it there in case anyone else
might have been interested.

And yes, a PM talk on HTML::Mason would be of
much interest, at least to myself...

Jens


----- Forwarded message from Andrew Creer <ac at market-research.com> -----

Date: Fri, 30 Aug 2002 12:48:17 +1000
To: Jens Porup <jens at cyber.com.au>
Subject: Re: installing HTML::Mason
From: Andrew Creer <ac at market-research.com>

Hi Jens

HTML::Mason tries to find an httpd.conf and then tries to
build a cutdown httpd then tries to run it with modified
for HTML::Mason version of the httpd.conf it found, etc, etc
etc.  Personally i think the testing tries to do too much,
but thats just me.  

if you do the install manually 
(am i telling you things you already know is i say that using cpan does
 * download the right version
 * unzip and untar into /root/.cpan/build/HTML-Mason/ (in
 your case)
 * cd /root/.cpan/build/HTML-Mason/
 * perl Makefile.PL
 * make test
 * make install
)
then there are options to the perl Makefile.PL line that
will skip the test that tries to do the httpd stuff.

BUT then you have to read more of the HTML::Mason docs, and
look at the mailing list archive at www.masonhq.com, and
know about mod_perl and what it does and then work out how
to put all the pieces of the jigsaw together.

It is worth it in the end though.  Mason is very nice, (but i
don't use it at its full potential, so i would not like to
do a talk about it at melb.pm.... if anyone was thinking
about that...)

see ya

On Fri, Aug 30, 2002 at 12:12:20PM +1000, Jens Porup wrote:
> 
> Ok, ok, I should have google'd first.
Thats just what perl does if you try and use a module that
is not installed.

>So it's a dependency issue,
> right? But even after fixing (I think) all the dependency issues,
> I still get the error message below.
> 
> It looks like it thinks my httpd is somehow installed in
> /root/.cpan/....httpd  ?????
> 
> jens
> 
> TIA!
> 
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
> -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use
> Test::Harness qw(&runtests $verbose); $verbose=0; $ENV{MASON_VERBOSE} == 0
> ? 0 : $ENV{MASON_VERBOSE}; $ENV{PORT}=8228;
> $ENV{APACHE_DIR}=q^/root/.cpan/build/HTML-Mason-1.13/t^; runtests @ARGV;'
> t/*.t
> t/01-syntax...........ok
> t/02-sections.........ok
> t/04-misc.............ok
> t/05-request..........ok
> t/06-compiler.........ok
> t/07-interp...........ok
> t/08-ah...............
> Testing whether Apache can be started
> Executing /root/.cpan/build/HTML-Mason-1.13/t/httpd  -f
> /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf
> Syntax error on line 9 of /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf:
> Cannot load /etc/httpd/modules/mod_bandwidth.so into server:
> /etc/httpd/modules/mod_bandwidth.so: cannot open shared object file: No
> such file or directory
> Can't start httpd server as '/root/.cpan/build/HTML-Mason-1.13/t/httpd  -f
> /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf': No such file or directory
> at t/live_server_lib.pl line 65.
> t/08-ah...............dubious
>         Test returned status 2 (wstat 512, 0x200)
> t/09a-comp_content....ok
> t/09-component........ok
> t/10-cache............ok
> t/11-inherit..........ok
> t/12-taint............ok
> t/13-errors...........ok
> t/14-cgi..............ok
> t/15-subclass.........ok
> t/16-live_cgi.........
> Testing whether Apache can be started
> Executing /root/.cpan/build/HTML-Mason-1.13/t/httpd  -f
> /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf
> Syntax error on line 9 of /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf:
> Cannot load /etc/httpd/modules/mod_bandwidth.so into server:
> /etc/httpd/modules/mod_bandwidth.so: cannot open shared object file: No
> such file or directory
> Can't start httpd server as '/root/.cpan/build/HTML-Mason-1.13/t/httpd  -f
> /root/.cpan/build/HTML-Mason-1.13/t/httpd.conf': No such file or directory
> at t/live_server_lib.pl line 65.
> t/16-live_cgi.........dubious
>         Test returned status 2 (wstat 512, 0x200)
> t/17-print............ok
> Failed Test     Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> t/08-ah.t          2   512    ??   ??       %  ??
> t/16-live_cgi.t    2   512    ??   ??       %  ??
> Failed 2/17 test scripts, 88.24% okay. 0/174 subtests failed, 100.00% okay.
> make: *** [test_dynamic] Error 11
>   /usr/bin/make test -- NOT OK
> Running make install
>   make test had returned bad status, won't install without force
> Bundle summary: The following items in bundle Bundle::HTML::Mason had
> installation problems:
>   HTML::Mason
> 
> cpan>

-- 
Andrew Creer                    Phone  + 61 3 9689 5299
Systems Developer               Fax    + 61 3 9689 5399
Horizon Research Corporation    US Toll Free 1877 342 0928

----- End forwarded message -----



More information about the Melbourne-pm mailing list