Goodness, Pramod. You seem to be a guru.
I have decided to use mod_perl module, which is installed by stronghold.
But if you want to use me as a guinea-pig, and want me to try to install
mod-perl,
I can do that. Do you want to check whether your instructions work ? Don't
hesitate to
ask me to do mod-perl installation, if my feedback is going to benefit you.
I am most impressed with your mail.

Forgive my laziness, but could you suggest a couple of ways to change @INC
default path ? that would be great. Or let me know the URL which deals with
changing @INC .

As I wanted to use mod-perl, I first installed perl in a dir, and then
installed
stronghold in the same dir. Is that okay? I am totally confused as to how
@INC
contains directories that don't even exist.

- nani (Dhananjay Naniwadekar)

-----Original Message-----
From: Pramod Sokke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 19, 2000 7:42 PM
To: Dhananjay Naniwadekar; Stronghold; [EMAIL PROTECTED]
Subject: Re: mod perl compilation problem [10014208]


@INC is the default path for all Perl libs. This is set at your Perl
installation time, but can be modified by various number of ways. You can
check out any Perl documentation for that.
Now for the main task in hand. You are using Stronghold 3.0 and that comes
with it's own distribution of Perl and mod_perl. You are trying to install
mod_perl separately, which means you don't want to use SH3's version of it
and want to use your own Perl......which is perfectly reasonable.
Here are the steps that you need to follow:

1. go to your mod_perl directory.

2. Edit mod_perl-1.24/Makefile.PL; set:
    1. ALL_HOOKS = 1;
    2. PERL_TRACE = 1;

3. Edit /ServerRoot/bin/shperl. Change the path of Perl lib to the
pre-installed Perl

4. in /ServerRoot/src/Configuration, edit these lines:

before:
EXTRA_CFLAGS=`/ServerRoot/perl/bin/perl -I/ServerRoot/perl/lib -I/ServerRoot
/perl/lib/site -MExtUtils::E
mbed -e ccopts`
EXTRA_LIBS=`/ServerRoot/perl/bin/perl -I/ServerRoot/perl/lib -I/ServerRoot/p
erl/lib/site -MExtUtils::Emb
ed -e ldopts` -Lmodules/extra -L../modules/extra -lm

after:
EXTRA_CFLAGS=`/usr/local/bin/perl -I/usr/local/lib/perl5/5.00503 -I/usr/loca
l/lib/perl5/5.00503/sun4-sol
aris -MExtUtils::Embed -e ccopts`
EXTRA_LIBS=`/usr/local/bin/perl -I/usr/local/lib/perl5/5.00503 -I/usr/local/
lib/perl5/5.00503/sun4-solar
is -MExtUtils::Embed -e ldopts` -Lmodules/extra -L../modules/extra -lm

i.e. remove references to their unwanted perl installation and point them to
your own Perl

5. perl Makefile.PL APACHE_SRC=/ServerRoot/src/ DO_HTTPD=1 USE_APACI=0
EVERYTHING=1

6. make

7. skip 'make test'. This causes problems for which I couldn't find a
solution to.

8. httpd -l - This'll give a list of modules compiled.

9. make install

10. Copy /ServerRoot/src/httpd to /ServerRoot/bin/httpd

    cp /ServerRoot/src/httpd /ServerRoot/bin/.

IMPORTANT : This is off-topic, but related to Stronghold installation. After
installing everything, 2 im
portant executables 'apachectl' and 'ab' are not available for use by
default. Go to /ServerRoot/src/sup
port and run 'make'to build 'ab' specifically and then copy 'ab' and
'apachectl' to /ServerRoot/bin dire
ctory.

11. /ServerRoot/bin/start-server

Check the stronghold error_log to see if mod_perl 1.24 is being used.


Let me know if you have any problems with this.
Good luck!
-Pramod

----- Original Message -----
From: Dhananjay Naniwadekar <[EMAIL PROTECTED]>
To: Stronghold <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, September 19, 2000 2:32 PM
Subject: RE: mod perl compilation problem [10014208]


>
> Hello there :
> I installed perl in dir /export/product/mydir ;
> then I installed stronghold 3.0 in the same dir.
> After that I installed CPAN modules. Now I am on to mod-perl installation.
>
> To spare you from having to read the whole of this mail, my Q in a
nutshell
> is :
> perl programs use a variable named @INC. I don't know how this gets
formed.
> Please help.
>
> Now for the lenghthy explanation.
>
> perl programs use a variable named @INC. I don't know how this gets
formed.
> But on my hpux machine, value of this variable is :
> (@INC contains: /home/build/sh3_bc3011/perl/perlroot/lib
> /home/build/sh3_bc3011/perl/perlroot/lib
> /home/build/sh3_bc3011/perl/perlroot/lib/site
> /home/build/sh3_bc3011/perl/perlroot/lib/site
> /export/home/nani/mod_perl-1.24/t/
> /export/home/nani/mod_perl-1.24/t/lib/perl)
>
> mod-perl installation gives me this error : Can't locate
ExtUtils/testlib.pm
> in @INC
>
> I have this file in dirs :
> /export/product/mydir/lib/perl5/5.00503/ExtUtils/testlib.pm ,
> /export/product/mydir/perl/lib/ExtUtils/testlib.pm .
>
> How does @INC have all those dirs which don't even exist ? I don't have
> /home/build/sh3_bc3011 directory on my machine at all.
>
> - nani (dhananjay naniwadekar)
>

Reply via email to