You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dhananjay Naniwadekar <na...@globalsight.com> on 2000/09/20 05:42:31 UTC
RE: mod perl compilation problem
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:pramod@investools.com]
Sent: Tuesday, September 19, 2000 7:42 PM
To: Dhananjay Naniwadekar; Stronghold; modperl@apache.org
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 <na...@globalsight.com>
To: Stronghold <su...@eu.c2.net>; <mo...@apache.org>
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)
>
Re: mod perl compilation problem
Posted by Pramod Sokke <pr...@investools.com>.
I don't need to use anyone as a guinea pig and I don't need anybody to
demonstrate that the instructions work. I've wiped everything clean on my
servers and built everything from scratch so many times, that I can do it
all in 10 minutes with absolutely no problems. So I know the instructions
work.
Moreover, these steps were deduced with lot of discussions and experiments
among some of us on the list and is the result of hard work. There's no
doubt the instructions work.
And trust me, if you are writing such emails on the list, you're going to be
totally ignored by everybody on the list and soon will be blasted too. This
is a very very useful list with people with genuine interest and complete
dedication
and commitment to mod_perl. You don't want to misuse this. You
don't want to come to this list until you've done some home work and spent
atleast a couple of nights trying out some experiments, read some manuals,
browse the web, etc. And you don't want to talk about Perl basics like @INC
on this list.
You'll run the risk of being ignored by everybody when eventually you have
some real mod_perl-related issues.
Try getting the same help from Stronghold support.....you'll know how good
this list is.
RTFM. Get yourself some Perl book. Read Apache documentation. Read mod_perl
guide.
I don't know what you are doing, but don't think of proceeding any further
if you don't know the basics. This is for your own good.
----- Original Message -----
From: Dhananjay Naniwadekar <na...@globalsight.com>
To: Pramod Sokke <pr...@investools.com>
Cc: <mo...@apache.org>
Sent: Tuesday, September 19, 2000 8:42 PM
Subject: RE: mod perl compilation problem
> 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:pramod@investools.com]
> Sent: Tuesday, September 19, 2000 7:42 PM
> To: Dhananjay Naniwadekar; Stronghold; modperl@apache.org
> 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 <na...@globalsight.com>
> To: Stronghold <su...@eu.c2.net>; <mo...@apache.org>
> 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)
> >
>