[rt-users] Apache + mod_perl

Adam R Prato arp-rt2 at metachar.net
Thu Oct 18 15:20:06 EDT 2001


* Sheeri Kritzer wrote on 18 Oct 2001:

> On Thu, 18 Oct 2001, Teo de Hesselle wrote:
> 
> > Vivek Khera wrote:
> >
> > > You *must* use the same compiler for everything.
> > >
> > > You *must* specify the same LARGE FILES setting for everything.
> > >
> > > everything == apache and mod_perl.
> > >
> >
> > And if it's not obvious, you'll also need to compile everything yourself.
> > It's not difficult.
> 
> Right, I don't think that was the issue.  The issue is that Solaris has
> some funky compiler issues, and the Berkeley cc doesn't help -- you either
> need gcc or Sun's Forte Compiler.  The problem is that sometimes perl, the
> package, not mod_perl, but the big, whopping, honking perl, is set so that
> when you use it to create a makefile (ie, perl Makefile.PL, as you need to
> do with the mod_perl installation), it looks for "cc" instead of "default
> compiler".
> 

and if this helps, I couldnt get it to work unless I had mod_perl build apache:


{sys1:/u/pratoa/src/build/mod_perl-stat/mod_perl-1.26} cat buildme
perl Makefile.PL APACHE_PREFIX=/usr/local/apache APACHE_SRC=../apache_1.3.20/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACI_ARGS="`cat ../apache_1.3.20/aa`"


and the apaci args I used are:

    --prefix=/usr/local/apache  --sysconfdir=/var/apache/conf --logfiledir=/var/apache/logs --datadir=/var/apache --localstatedir=/var/apache --with-layout=Apache --with-perl=/usr/local/bin/perl --enable-rule=SHARED_CORE --enable-module=so --enable-module=env --enable-module=proxy --enable-module=log_config --enable-module=log_agent --enable-module=log_referer --enable-module=mime_magic --enable-module=mime --enable-module=negotiation --enable-module=status --enable-module=info --enable-module=include --enable-module=autoindex --enable-module=dir --enable-module=cgi --enable-module=asis --enable-module=imap --enable-module=actions --enable-module=userdir --enable-module=alias --enable-module=rewrite --enable-module=access --enable-module=auth --enable-module=usertrack --enable-module=setenvif

This built apache with dso support, but builds mod_perl static into apache:

} /usr/local/apache/bin/httpd -l | grep perl
  mod_perl.c


I ran make and make install from the mod_perl directory.

Adam





More information about the rt-users mailing list