Mailing List Archive

modperl with stronghold
Hi all,

I recently installed stronghold using the program
sh-242-sparc-sun-solaris2.7.bc2412

Everything installed correctly and is working fine.


Now I want to install mod perl.

I run perl Makefile.PL APACHE_SRC=/usr/local/www/src/ DO_HTTPD=1
USE_APACI=1
EVERYTHING=1

I installed stronghold into /usr/local/www

I get the error (cd /usr/local/www && CC="gcc" ./configure
--activate-module=src/modules/perl/libperl.a)
sh: ./configure: not found

This I understand. configure is not there. Actually it is Configure
with a
capital 'C' but Configure does not understand --activate-module so I
am a
little confused. I have compiled mod perl into apache hundreds of
times but
never into stronghold.

I have stronghold version
Server version: Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412 (Unix)

mod perl version 1.21

Any help would be appreciated.

Thanks -J
______________________________________________
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Re: modperl with stronghold [ In reply to ]
>
> I recently installed stronghold using the program
> sh-242-sparc-sun-solaris2.7.bc2412
>
> Everything installed correctly and is working fine.
>
>
> Now I want to install mod perl.
>
> I run perl Makefile.PL APACHE_SRC=/usr/local/www/src/ DO_HTTPD=1
> USE_APACI=1
> EVERYTHING=1
>
> I installed stronghold into /usr/local/www
>
> I get the error (cd /usr/local/www && CC="gcc" ./configure
> --activate-module=src/modules/perl/libperl.a)
> sh: ./configure: not found
>
> This I understand. configure is not there. Actually it is Configure
> with a
> capital 'C' but Configure does not understand --activate-module so I
> am a
> little confused. I have compiled mod perl into apache hundreds of
> times but
> never into stronghold.
>
> I have stronghold version
> Server version: Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412 (Unix)
>
> mod perl version 1.21
>
> Any help would be appreciated.

Please try to follow this section:
http://perl.apache.org/guide/install.html#mod_perl_and_Stronghold

>
> Thanks -J
> ______________________________________________
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>



_______________________________________________________________________
Stas Bekman mailto:sbekman@iname.com http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC
perl.apache.org modperl.sourcegarden.org perlmonth.com perl.org
single o-> + single o-+ = singlesheaven http://www.singlesheaven.com
Re: modperl with stronghold [ In reply to ]
I have actually already read
http://perl.apache.org/guide/install.html#mod_perl_and_Stronghold
and all other documentation about the installation process. The problem is
that the install process described does not work. The jist of the problem is
that when you install stronghold, you use a program to install it. You don't
build it from the source using APACI. The directions in mod perl install say
to do:

perl Makefile.PL APACHE_SRC=/usr/local/www/src DO_HTTPD=1 USE_APACI=1
EVERYTHING=1

with USE_APACI=1 well in /usr/local/www there is no configure script so that
when the above run you get:

=
Will configure via APACI
cp apaci/Makefile.libdir /usr/local/www/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl /usr/local/www/src/modules/perl/Makefile.tmpl
cp apaci/README /usr/local/www/src/modules/perl/README
cp apaci/configure /usr/local/www/src/modules/perl/configure
.
.
.
PerlSSI.....................enabled
I see you are building with Stronghold,
I'll set the SSL flags in mod_perl's Makefile
Before running `make test', you must add your `StrongholdLicenseFile' to
t/conf/httpd.conf
Will run tests as User: 'nobody' Group: 'other'
(cd /usr/local/www && CC="gcc" ./configure
--activate-module=src/modules/perl/libperl.a)
sh: ./configure: not found
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
.
.
.

=

then you run make from /usr/local/src/mod_perl-1.21 and get:

=
(cd /usr/local/www && make)
make: Fatal error: No arguments to build
Current working directory /usr/local/www
*** Error code 1
make: Fatal error: Command failed for target `apaci_httpd'
=

I thank you all for your help and advice.

Jason
> >
> > > > I recently installed stronghold using the program
> > > > sh-242-sparc-sun-solaris2.7.bc2412
> > > >
> > > > Everything installed correctly and is working fine.
> > > >
> > > >
> > > > Now I want to install mod perl.
> > > >
> > > > I run perl Makefile.PL APACHE_SRC=/usr/local/www/src/
>DO_HTTPD=1
> > > > USE_APACI=1
> > > > EVERYTHING=1
> > > >
> > > > I installed stronghold into /usr/local/www
> > > >
> > > > I get the error (cd /usr/local/www && CC="gcc" ./configure
> > > > --activate-module=src/modules/perl/libperl.a)
> > > > sh: ./configure: not found
> > > >
> > > > This I understand. configure is not there. Actually it is
> > >Configure
> > > > with a
> > > > capital 'C' but Configure does not understand
>--activate-module
> > >so I
> > > > am a
> > > > little confused. I have compiled mod perl into apache hundreds
>of
> > > > times but
> > > > never into stronghold.
> > > >
> > > > I have stronghold version
> > > > Server version: Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412
>(Unix)
> > > >
> > > > mod perl version 1.21
> > > >
> > > > Any help would be appreciated.
> > >
> > >Please try to follow this section:
> > >http://perl.apache.org/guide/install.html#mod_perl_and_Stronghold
> > >
> > > >
> > > > Thanks -J
> > > > ______________________________________________
> > > > ______________________________________________________
> > > > Get Your Private, Free Email at http://www.hotmail.com
> > > >
> > > >
> > >
> > >
> > >
> > >_______________________________________________________________________
> > >Stas Bekman mailto:sbekman@iname.com http://www.stason.org/stas
> > >Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC
> > >perl.apache.org modperl.sourcegarden.org perlmonth.com perl.org
> > >single o-> + single o-+ = singlesheaven http://www.singlesheaven.com
> > >
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
>
>
>
>_______________________________________________________________________
>Stas Bekman mailto:sbekman@iname.com http://www.stason.org/stas
>Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC
>perl.apache.org modperl.sourcegarden.org perlmonth.com perl.org
>single o-> + single o-+ = singlesheaven http://www.singlesheaven.com
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Re: modperl with stronghold [ In reply to ]
last I did this, once stronghold was installed from their installer,
it left the following tree:

total 5773
-rw------- 1 root wheel 2726 Mar 18 1999 00README
-rw------- 1 root wheel 2841 May 26 1998 CREDITS
-rw------- 1 root wheel 4156 Mar 24 1999 RELEASE_NOTES
drwx------ 2 root wheel 1024 May 11 1999 bin/
drwxr-xr-x 2 www www 512 May 11 1999 cache/
drwxr-xr-x 2 root wheel 512 May 11 1999 cgi-bin/
drwx------ 2 root wheel 512 May 11 1999 cgi-src/
drwxr-xr-x 2 root wheel 512 May 11 1999 conf/
drwxr-xr-x 4 root wheel 512 May 11 1999 htdocs/
-rwxr-xr-x 1 root wheel 2264905 Aug 25 1999 httpsd*
-rwxr-xr-x 1 root wheel 1318912 May 11 1999 httpsd.dist*
-rwxr-xr-x 1 root wheel 2264881 May 18 1999 httpsd.old*
drwxr-xr-x 2 root wheel 2048 May 11 1999 icons/
drwx------ 2 root wheel 512 Feb 19 04:16 logs/
drwx------ 4 root wheel 512 May 11 1999 manual/
drwxr-xr-x 25 root wheel 1536 Aug 25 1999 mod_perl-1.19_01/
-rw-r--r-- 1 root wheel 95 May 11 1999 mod_perl.config
drwxr-xr-x 2 root wheel 512 Mar 26 1999 modules/
-rw-r--r-- 1 root wheel 367 May 11 1999 sh2license
drwxr-xr-x 11 root wheel 1024 Aug 25 1999 src/
drwx------ 8 root wheel 512 May 11 1999 ssl/
drwx------ 3 root wheel 512 May 11 1999 swish/

As you can see I extracted the mod_perl sources into this directory.
mod_perl.config is my notes on how to configure it:

perl Makefile.PL PERL_POST_READ_REQUEST=1 PERL_TIE_TABLES=1 PERL_SSI=1
PERL_STACKED_HANDLERS=1

once I've gotten into the mod_perl directory.

mod_perl builds just fine then. I only enabled the handlers I needed
because this config dates *waaaay* back in time before EVERYTHING=1
was the way to go. I think EVERYTHING=1 should work ok.

The trick is getting the php that stronghold ships with to configure
as you want. If you want the default, then just let it build. If you
want database access from php, you need to manually build php inside
stronghold and comment out the makefile parts that re-build it.

Other than that, it just builds fine. (This is on BSD/OS 3.1, by the
way.)

And I know I have old versions. They work. They are in production.
I don't need to change it for the sake of changing it ;-)
Re: modperl with stronghold [ In reply to ]
Thank you for your help. I have only one last question. when I type make it
fails because it is setting
Would you like the bundled regex library? [yN] to YES

However this is breaking it. I have put WANTHSREGEX=no
into $STRONHOLD_HOME/src/Configuration but it is still setting this Yes. It
does not prompt me for this, it is automatically doing this. Anyone have any
advice on getting this to answer NO here?

I thank you all for your help.

=
*IMPORTANT* If you are compiling the Apache module, make sure
you set Apache's regexp setting accordingly in the Configuration
file. ie. WANTHSREGEX=no if you answer No here.

Would you like the bundled regex library? [yN] Y
Using the included Posix regular expression library
=


>last I did this, once stronghold was installed from their installer,
>it left the following tree:
>
>total 5773
>-rw------- 1 root wheel 2726 Mar 18 1999 00README
>-rw------- 1 root wheel 2841 May 26 1998 CREDITS
>-rw------- 1 root wheel 4156 Mar 24 1999 RELEASE_NOTES
>drwx------ 2 root wheel 1024 May 11 1999 bin/
>drwxr-xr-x 2 www www 512 May 11 1999 cache/
>drwxr-xr-x 2 root wheel 512 May 11 1999 cgi-bin/
>drwx------ 2 root wheel 512 May 11 1999 cgi-src/
>drwxr-xr-x 2 root wheel 512 May 11 1999 conf/
>drwxr-xr-x 4 root wheel 512 May 11 1999 htdocs/
>-rwxr-xr-x 1 root wheel 2264905 Aug 25 1999 httpsd*
>-rwxr-xr-x 1 root wheel 1318912 May 11 1999 httpsd.dist*
>-rwxr-xr-x 1 root wheel 2264881 May 18 1999 httpsd.old*
>drwxr-xr-x 2 root wheel 2048 May 11 1999 icons/
>drwx------ 2 root wheel 512 Feb 19 04:16 logs/
>drwx------ 4 root wheel 512 May 11 1999 manual/
>drwxr-xr-x 25 root wheel 1536 Aug 25 1999 mod_perl-1.19_01/
>-rw-r--r-- 1 root wheel 95 May 11 1999 mod_perl.config
>drwxr-xr-x 2 root wheel 512 Mar 26 1999 modules/
>-rw-r--r-- 1 root wheel 367 May 11 1999 sh2license
>drwxr-xr-x 11 root wheel 1024 Aug 25 1999 src/
>drwx------ 8 root wheel 512 May 11 1999 ssl/
>drwx------ 3 root wheel 512 May 11 1999 swish/
>
>As you can see I extracted the mod_perl sources into this directory.
>mod_perl.config is my notes on how to configure it:
>
> perl Makefile.PL PERL_POST_READ_REQUEST=1 PERL_TIE_TABLES=1 PERL_SSI=1
> PERL_STACKED_HANDLERS=1
>
>once I've gotten into the mod_perl directory.
>
>mod_perl builds just fine then. I only enabled the handlers I needed
>because this config dates *waaaay* back in time before EVERYTHING=1
>was the way to go. I think EVERYTHING=1 should work ok.
>
>The trick is getting the php that stronghold ships with to configure
>as you want. If you want the default, then just let it build. If you
>want database access from php, you need to manually build php inside
>stronghold and comment out the makefile parts that re-build it.
>
>Other than that, it just builds fine. (This is on BSD/OS 3.1, by the
>way.)
>
>And I know I have old versions. They work. They are in production.
>I don't need to change it for the sake of changing it ;-)
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com