Operating System - HP-UX
1833873 Members
2953 Online
110063 Solutions
New Discussion

mod_perl installation for Apache 2

 
SOLVED
Go to solution
Christophe MAILHE
Frequent Advisor

mod_perl installation for Apache 2

Hello everybody,

I have an issue trying to build mod_perl v1.99_05 for Apache 2, and I am not an expert at all in C.

The binary distribution is not yet available in the archive and I have to build mod_perl from sources.

when I run the "perl Makefile.PL" I have the following warning :

_____________________________

Reading Makefile.PL args from @ARGV
MP_AP_PREFIX = /usr/local/apache2
MP_INST_APACHE2 = 1

************* WARNING *************

mod_perl is unlikely to link with your libperl, suggestions:
*) Rebuild Perl with Configure -Accflags=+Z ...


************* WARNING *************

_____________________________

Then, make returns with the following error :

_____________________________

make
cd "src/modules/perl" && make -f Makefile.modperl
gcc -I/www/depot/apache2-0.4/mod_perl-1.99_05/src/modules/perl -I/www/depot/apache2-0.4/mod_perl-1.99_05/xs -I/usr/local/apac
he2/include -D_HPUX_SOURCE -fno-strict-aliasing -Ae -I/usr/local/lib/perl5/5.8.0/PA-RISC2.0/CORE -DMOD_PERL -fPIC -c mod_perl.c && mv mod_perl.o mod_perl.lo
:1:2: missing '(' after predicate
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
_____________________________

I am using gcc (Thread model: posix - gcc version 3.2 - binary distribution from the HPUX Archive) and perl 5.8.0 (still from the archive).

Does someone can help me here ?

Many thanks,

Chris.
5 REPLIES 5
Paul Barker
Occasional Advisor

Re: mod_perl installation for Apache 2

Hi Chris

I ran into the same issue using Perl from the archive. You need to do what it says and build your own Perl from the source including the '+Z' option. (It could be worth enabling threading too)

I've successfully build Perl 5.8.0 and Apache 2.0.40 from source with HP's aCC compiler but I can't get mod_perl to build against it so I would love to hear how you get on.

Cheers

Paul
Christophe MAILHE
Frequent Advisor

Re: mod_perl installation for Apache 2

How do I get on...

I have lost too much time trying to install apache 2 + mod_perl 1.99, so:

I uninstalled apache 2 and re-built and installed apache 1.3.26 with mod_perl and I have no issue anymore...

Since, no issues anymore.

Cheers.
Paul Barker
Occasional Advisor

Re: mod_perl installation for Apache 2

Hi

Yep, I'm coming to the same conclusion myself.

However it looks like I've managed to get a Perl 5.8.0 build working with gCC 3.2 so I'm going to try rebuilding everything with that compiler and see what happens.

If it still fails I'll be going back to the old versions.

Cheers

Paul
Christophe MAILHE
Frequent Advisor

Re: mod_perl installation for Apache 2

I have also found the way to build perl 5.8.0 using :

./Configure -d -e -Dcc=gcc -Dprefix=/usr/local -Duseshrplib useposix=true -A append:ccflags=' -fpic'

But I still use to have issues building mod_perl 1.99.

So what I did is to build apache 1.3.26 and mod_perl 1.27 at the same time using:

* For mod_perl:
perl Makefile.PL APACHE_src=../apache_1.3.26/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache

* For Apache:
./configure --activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT --prefix=/usr/local/apache

But I am not sure that will do it anyway, as I have now issues to re-build the perl module DBD::Oracle. The module does not link properly with perl anymore!

Cheers
Sean OB_1
Honored Contributor
Solution

Re: mod_perl installation for Apache 2

Chris,

my thoughts on this are to wait a bit on apache 2. It seems to have more problems then needed. So unless you have a real need to move to it, stick with the latest 1.3x version of apache.

Sean