You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Victor Dias <vg...@gmail.com> on 2005/11/04 16:50:59 UTC

Can't install libapreq2 on Fedora 2

I need to install Mason on Fedora 2 with Apache 2.
When I try to install Mason i receive:

 * ERROR: Prerequisite Apache::Request isn't installed

I need to install the Apache2::Request (libapreq2) module for Apache
2, and when I try to install it:

build/version_check.pl failed: no version_string found in '' for 'mod_perl'.
./configure: line 1: apxs: command not found
build/version_check.pl failed: no version_string found in '' for 'apache2'.

If I pass the apxs path to the configure script works, but if I try to
install Mason again:

 * ERROR: Prerequisite Apache::Request isn't installed

Im using:
Fedora 2
httpd-2.0.51-2.9
httpd-devel-2.0.51-2.9
perl-5.8.3-18
mod_perl-1.99_12-2.1
mod_perl-devel-1.99_12-2.1
libapreq2-2.06-dev
HTML-Mason-1.3101
kernel-2.6.10-1.771_FC2

Any help?

Thanks.

Re: Can't install libapreq2 on Fedora 2

Posted by Fred Moyer <fr...@taperfriendlymusic.org>.
On Fri, 4 Nov 2005 9:33 am, Victor Dias wrote:
> I did the same install on Fedora 4 with mod_perl-2.0.1-1.fc4.

> Any help?

Try building 2.0.2 from source.  The redhat / fedora packages have never 
been completely error free in my experience.  I've built 2.0.2 with 
libapreq 2.0.6-dev several times with no problems.

Re: Can't install libapreq2 on Fedora 2

Posted by Chris Grau <ch...@chrisgrau.com>.
On Fri, Nov 04, 2005 at 03:00:30PM -0200, Victor Dias wrote:
> I did the same install on Fedora 4 with mod_perl-2.0.1-1.fc4.
> 
> cd libapreq2-2.06-dev
> perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
> make
[snip]
> How can I install Mason without the Apache::Request dependency?
> I want to try the CGI mode now.
> The recomendation is to use CGI mode or modperl? What is better?
> 
> Any help?

If you're using Fedora Core 4, why not just use the packages available?

[cgrau@anubis ~]$ yum list \*libapreq2 perl-HTML-Mason
Setting up repositories
Reading repository metadata in from local files
Available Packages
libapreq2.i386                           2.06-2.fc4             extras
perl-HTML-Mason.noarch                   1.3101-3.fc4           extras
perl-libapreq2.i386                      2.06-2.fc4             extras

As for installing on FC-2, if one wants to continue using the package
management system instead of compiling from source, well, one can do
both.  I recommend grabbing the source packages from FC-5 (development)
and building them on FC-2.  It should work fairly well.  I managed to do
it on Red Hat Linux 9 systems with minimal hassle.

-- 
Chris Grau <ch...@chrisgrau.com>

Re: Can't install libapreq2 on Fedora 2

Posted by Victor Dias <vg...@gmail.com>.
I did the same install on Fedora 4 with mod_perl-2.0.1-1.fc4.

cd libapreq2-2.06-dev
perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
make

receive:
/var/www/html/libapreq2-2.06-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34:
error: modperl_perl_unembed.h: Arquivo ou diretório não encontrado
/var/www/html/libapreq2-2.06-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:24:33:
error: modperl_common_util.h: Arquivo ou diretório não encontrado
In file included from Apache2.xs:45:
/var/www/html/libapreq2-2.06-dev/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22:
error: mod_perl.h: Arquivo ou diretório não encontrado
Apache2.c: In function 'XS_APR__Request__Apache2_handle':
Apache2.c:65: warning: initialization makes pointer from integer without a cast
make[6]: ** [Apache2.o] Erro 1
make[6]: Leaving directory
`/var/www/html/libapreq2-2.06-dev/glue/perl/xs/APR/Request/Apache2'
make[5]: ** [subdirs] Erro 2
make[5]: Leaving directory
`/var/www/html/libapreq2-2.06-dev/glue/perl/xs/APR/Request'
make[4]: ** [subdirs] Erro 2
make[4]: Leaving directory `/var/www/html/libapreq2-2.06-dev/glue/perl/xs/APR'
make[3]: ** [subdirs] Erro 2
make[3]: Leaving directory `/var/www/html/libapreq2-2.06-dev/glue/perl/xs'
make[2]: ** [subdirs] Erro 2
make[2]: Leaving directory `/var/www/html/libapreq2-2.06-dev/glue/perl'
make[1]: ** [perl_glue] Erro 2
make[1]: Leaving directory `/var/www/html/libapreq2-2.06-dev/glue'
make: ** [all-recursive] Erro 1

How can I install Mason without the Apache::Request dependency?
I want to try the CGI mode now.
The recomendation is to use CGI mode or modperl? What is better?

Any help?


2005/11/4, Perrin Harkins <pe...@elem.com>:
> On Fri, 2005-11-04 at 13:50 -0200, Victor Dias wrote:
> > Im using:
> [...]
> > mod_perl-1.99_12-2.1
>
> You need a newer mod_perl.  The latest is 2.0.2.
>
> - Perrin
>
>

Re: Can't install libapreq2 on Fedora 2

Posted by Perrin Harkins <pe...@elem.com>.
On Fri, 2005-11-04 at 13:50 -0200, Victor Dias wrote:
> Im using:
[...]
> mod_perl-1.99_12-2.1

You need a newer mod_perl.  The latest is 2.0.2.

- Perrin