Getting mod_perl-1.27 Apache-2.0.39

2002-07-14 Thread eric

I've tried every which way and still can't get mod_perl to compile.

I'm running Perl v5.6.1 built for i586-linux.  I downloaded Apache 2.0.39 and 
extracted it into /usr/local where it created httpd-2.0.39.  

I have Apache 2.0.39 built with SSL and DSO, and it's in 
/usr/local/Apache-2.0.39.  It's working.  I'm willing to recompile it again 
but it seems to be a lost cause :-))  In one piece of documentation it says 
that the Makefile.PL is looking for the *.h files in the Apache source tree.

Trying to get mod_perl in I type:

perl Makefile.PL APACHE_SRC=/usr/local/httpd-2.0.39/include DO_HTTPD=1 \ 
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1

I'm asked ...where I can find you apache src

I type in  /usr/local/httpd-2.0.39/include

and get:

Apache Version 1.3.0 required, aborting..

I've also tried:

perl Makefile.PL APACHE_SRC=/usr/local/httpd-2.0.39 DO_HTTPD=1 \ 
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1

and got the same error message.


Ok, so lets try building mod_perl as a DSO outside the Apache Source Tree via 
APXS just as the documentation says.  

perl Makefile.PL USE_APXS=1 WITH APXS=/usr/local/Apache-2.0.39/bin \ 
EVERYTHING=1

Nope.  Get:

mod_perl.c:1735: request for member `val' in something not a structure or 
union
mod_perl.c:1735: request for member `key' in something not a structure or 
union
mod_perl.c:1735: request for member `key' in something not a structure or 
union
mod_perl.c:1735: request for member `key' in something not a structure or 
union
make[1]: *** [mod_perl.lo] Error 1
make[1]: Leaving directory `/usr/local/mod_perl-1.27/apaci'
make: *** [apxs_libperl] Error 2
linux:/usr/local/mod_perl-1.27 #

I've also tried:

perl Makefile.PL USE_APXS=1 WITH APXS=/usr/local/Apache-2.0.39/bin \ 
EVERYTHING=1 SSL_BASE=/usr/local/ssl

Same error message.

I'm not sure what else to do anymore.  Anyone have any ideas?

I have to head to the Bosnia AO tommorrow and won't be back until Friday, 19 
July.  If anyone has any ideas could you please post here and to my email.

Thanks!
Eric



Re: Getting mod_perl-1.27 Apache-2.0.39

2002-07-14 Thread Randy Kobes

On Sun, 14 Jul 2002, eric wrote:

 I've tried every which way and still can't get mod_perl to compile.

 I'm running Perl v5.6.1 built for i586-linux.  I downloaded Apache 2.0.39 and
 extracted it into /usr/local where it created httpd-2.0.39.

 I have Apache 2.0.39 built with SSL and DSO, and it's in
 /usr/local/Apache-2.0.39.  It's working.  I'm willing to recompile it again
 but it seems to be a lost cause :-))  In one piece of documentation it says
 that the Makefile.PL is looking for the *.h files in the Apache source tree.

 Trying to get mod_perl in I type:

 perl Makefile.PL APACHE_SRC=/usr/local/httpd-2.0.39/include DO_HTTPD=1 \
 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1

 I'm asked ...where I can find you apache src
 I type in  /usr/local/httpd-2.0.39/include
 and get:
 Apache Version 1.3.0 required, aborting..
[ ... ]

For Apache-2 you need to get mod_perl-2; this is available at
http://www.cpan.org/authors/id/D/DO/DOUGM/mod_perl-1.99_xx.tar.gz.
Follow the mod_perl-2 links at http://perl.apache.org/ for
a discussion on building.

best regards,
randy kobes




Re: Getting mod_perl-1.27 Apache-2.0.39

2002-07-14 Thread eric

Randy,

Thank you.  When I saw 'in development' next to mod_perl-1.99_04 I thought it 
was just an update to 1.27.

I'm too much of a newbie to be getting into develepmental stuff :-))

Thanks again.  Worked like a charm!



On Sunday 14 July 2002 18:46, Randy Kobes wrote:
 On Sun, 14 Jul 2002, eric wrote:
  I've tried every which way and still can't get mod_perl to compile.
 
  I'm running Perl v5.6.1 built for i586-linux.  I downloaded Apache 2.0.39
  and extracted it into /usr/local where it created httpd-2.0.39.
 
  I have Apache 2.0.39 built with SSL and DSO, and it's in
  /usr/local/Apache-2.0.39.  It's working.  I'm willing to recompile it
  again but it seems to be a lost cause :-))  In one piece of documentation
  it says that the Makefile.PL is looking for the *.h files in the Apache
  source tree.
 
  Trying to get mod_perl in I type:
 
  perl Makefile.PL APACHE_SRC=/usr/local/httpd-2.0.39/include DO_HTTPD=1 \
  USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
 
  I'm asked ...where I can find you apache src
  I type in  /usr/local/httpd-2.0.39/include
  and get:
  Apache Version 1.3.0 required, aborting..

 [ ... ]

 For Apache-2 you need to get mod_perl-2; this is available at
 http://www.cpan.org/authors/id/D/DO/DOUGM/mod_perl-1.99_xx.tar.gz.
 Follow the mod_perl-2 links at http://perl.apache.org/ for
 a discussion on building.

 best regards,
 randy kobes




Re: Getting mod_perl-1.27 Apache-2.0.39

2002-07-14 Thread Michael Robinton



On Sun, 14 Jul 2002, eric wrote:

 I've tried every which way and still can't get mod_perl to compile.

snip

apache 2.x is not supported well at this point
You didn't say which SSL you were running, but if it's ben's apache-ssl,
this simple set of instructions will work.

build and install openssl9.6x (b or c) at least unpack apache_1.3.26
copy apache_1.3.26_ssl_1.48.tgz into apache directory, uppack and run
./FixPatch
rm apache/src/Configuration
rm apache/src/Configuration.apaci

edit apache/src/Configuration.tmpl to enable standard modules you may want
that are commented out. Typically that will be something like
... mod_info.o, mod_rewrite.o, mod_so.o libproxy.a

now go to the mod perl directory
modperl-1.26 or 1.27

Run:
perl Makefile.PL \
APACHE_SRC=/usr/src/apache/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1 \

make
make test   # broken
make install

This will build modperl and copy the appropriate modules to the apache src
directories.  Answer YES to the questions asked by script

go back to apache directory and run

./configure --with-layout=Apache \
--activate-module=src/modules/perl/libperl.a
make
make install

all done :-)

Michael