You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bart Lenoir <ma...@lingtren.com> on 2005/02/16 12:45:58 UTC
Apache::Request for apache2, mod_perl2, mason1.28
Hi to all,
I've been building perl-5.8.6, httpd-2.0.53, mod_perl-2.0.0-RC4(static) and
HTML-Mason-1.28 in /usr/local on Linux 2.4 (Debian). Everything went fine
until one of the last of Mason's requirements was Apache::Request, which
wasn't compatible with mod_perl2.
Is this setup possible or should i stick to apache 1.3/mod_perl 1.27?
There Mason works like a charm with Apache::Request for perl in /usr/bin.
Without Mason, i don't mind using mod_perl-2 without Apache::Request.
(I didn't manage libapreq2-2.04_03-dev to build either.)
This question may have been asked plenty of times before, sorry for that.
Regards,
Bart
--
A travelling fool is better than a sitting wise man. Nomadic Wisdom
Re: [Mason] Re: Apache::Request for apache2, mod_perl2, mason1.28
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Fri, 18 Feb 2005, Bart Lenoir wrote:
[ ... ]
> I started all over but with mod_perl2 as DSO this time.
> The static installation of mod_perl-2.0.0-RC4 at the time
> went ok, but now it failed for the test t/api/module. So,
> I took mod_perl-1.99_17 which compiled very well.
> libapreq2-2.04_03-dev I also managed to install but Mason
> is still not as it should be:
>
> Checking for Scalar::Util...ok
> Checking for File::Spec...ok
> Checking for CGI...ok
> Checking for Cache::Cache...ok
> Checking for Exception::Class...ok
> Checking for Test::More...ok
> Checking for Params::Validate...ok
> Checking for Class::Container...ok
> Checking for Apache::Request...ok
>
> *** If you plan to use Mason with Apache::Filter
> you will need to install Apache::Filter 1.021 or newer.
> Warning: prerequisite Apache::Filter 1.021 not found. We have 0.01.
>
> Whilst re�nstalling (did that a couple of times already)
> Apache-Filter-1.022, it keeps on looking for
> Apache::Constants which is also already present.
That's admittedly confusing, but when using mod_perl-2, you
should ignore the recommendation to install version 1.022 of
Apache::Filter, which is for use with mod_perl-1. The
mod_perl-2 package contains it's own Apache::Filter, which
is at version 0.01.
A trigger here you can use to infer this is the requirement
of Apache::Constants, which is a mod_perl-1-specific
package; in mod_perl-2, this functionality has been split up
into three packages: Apache::Const, APR::Const, and
ModPerl::Const.
--
best regards,
randy kobes
Re: Apache::Request for apache2, mod_perl2, mason1.28
Posted by Bart Lenoir <ma...@lingtren.com>.
On Wed, 16 Feb 2005 09:05:20 -0500, Kurt Hansen wrote
> Bart Lenoir wrote:
>
> >I've been building perl-5.8.6, httpd-2.0.53, mod_perl-2.0.0-RC4(static) and
> >HTML-Mason-1.28 in /usr/local on Linux 2.4 (Debian). Everything went fine
> >until one of the last of Mason's requirements was Apache::Request, which
> >wasn't compatible with mod_perl2.
> >
> >Is this setup possible or should i stick to apache 1.3/mod_perl 1.27?
> >There Mason works like a charm with Apache::Request for perl in /usr/bin.
> >
> >Without Mason, i don't mind using mod_perl-2 without Apache::Request.
> >(I didn't manage libapreq2-2.04_03-dev to build either.)
> >
> I've copied the Mason list in case others have the same question.
> Though, it seems your problem is in compiling libapreq2.
>
> I'm using perl-5.8.5, apache-2.0.52, mod_perl-1.9917 (DSO), Mason-
> 1.27, and libapreq2-2.04_03-dev. I've recently started testing
> mod_perl-2.0.0-RC4 (still DSO) and the latest version of apreq, and
> things are running smoothly.
>
> What problems are you having with libapreq2? You probably should get
> the most recent version; some bugs have been fixed since 2.04_03-
> dev. You can get the most recent version here:
>
> http://svn.apache.org/snapshots/apreq/
>
> Take care,
>
> Kurt Hansen
> khansen@charityweb.net
Hi,
I started all over but with mod_perl2 as DSO this time. The static
installation of mod_perl-2.0.0-RC4 at the time went ok, but now it failed for
the test t/api/module. So, I took mod_perl-1.99_17 which compiled very well.
libapreq2-2.04_03-dev I also managed to install but Mason is still not as it
should be:
Checking for Scalar::Util...ok
Checking for File::Spec...ok
Checking for CGI...ok
Checking for Cache::Cache...ok
Checking for Exception::Class...ok
Checking for Test::More...ok
Checking for Params::Validate...ok
Checking for Class::Container...ok
Checking for Apache::Request...ok
*** If you plan to use Mason with Apache::Filter
you will need to install Apache::Filter 1.021 or newer.
Warning: prerequisite Apache::Filter 1.021 not found. We have 0.01.
Whilst reïnstalling (did that a couple of times already) Apache-Filter-1.022,
it keeps on looking for Apache::Constants which is also already present.
Just now i tried mod_perl-2.0.0-RC4 again and everything went fine!
It's kind of funny:
Installing apache-perl (1.3.33-3), libapache-request-perl (1.1-0.1),
libhtml-mason-perl (1:1.26-1) as Debian packages, takes less than one minute
and everything is functional right away.
Cheers,
Bart
--
A travelling fool is better than a sitting wise man. Nomadic Wisdom
Re: Apache::Request for apache2, mod_perl2, mason1.28
Posted by Kurt Hansen <kh...@charityweb.net>.
Bart Lenoir wrote:
>I've been building perl-5.8.6, httpd-2.0.53, mod_perl-2.0.0-RC4(static) and
>HTML-Mason-1.28 in /usr/local on Linux 2.4 (Debian). Everything went fine
>until one of the last of Mason's requirements was Apache::Request, which
>wasn't compatible with mod_perl2.
>
>Is this setup possible or should i stick to apache 1.3/mod_perl 1.27?
>There Mason works like a charm with Apache::Request for perl in /usr/bin.
>
>Without Mason, i don't mind using mod_perl-2 without Apache::Request.
>(I didn't manage libapreq2-2.04_03-dev to build either.)
>
I've copied the Mason list in case others have the same question.
Though, it seems your problem is in compiling libapreq2.
I'm using perl-5.8.5, apache-2.0.52, mod_perl-1.9917 (DSO), Mason-1.27,
and libapreq2-2.04_03-dev. I've recently started testing
mod_perl-2.0.0-RC4 (still DSO) and the latest version of apreq, and
things are running smoothly.
What problems are you having with libapreq2? You probably should get the
most recent version; some bugs have been fixed since 2.04_03-dev. You
can get the most recent version here:
http://svn.apache.org/snapshots/apreq/
Take care,
Kurt Hansen
khansen@charityweb.net