Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread Stas Bekman

John Kolvereid wrote:
> Hi Stas,

John, please keep the thread at the list, unless you are asked to take 
it offlist.

>   Results:
> URI.pm location
>   /usr/lib/perl5/site_perl/5.005/i386-linus/Apache
> UserAgent
>   /usr/lib/perl5/site_perl/5.005/LWP
> HeadParser
>   unavailable

install HTML::HeadParser first. than install LWP from sources, and make 
sure that it passes all the LWP tests. only then, if you still have a 
problem with 'make test' it's a modperl problem, before that it's OT.

> When I run
>%perl -MURI -e1
> I get
>No such job %perl

:) I use % as a prompt example, of course no need to copy-n-paste %

:)

Hope you get it right now.

Using CPAN.pm is the easiest way to go about Perl modules installation.

perl -MCPAN -eshell

(this time I'm not including the % prompt :)

> What should I do next.  Please advise.  Thanks.
> --- Stas Bekman <[EMAIL PROTECTED]> wrote:
> 
>>John Kolvereid wrote:
>>
>>>Hi Stas,
>>>   I am currently running w/ openssl-0.9.6b. 
>>>
>>ALso, I
>>
>>>tried your suggestion:
>>>
>>> perl -MCPAN -eshell
>>> cpan> install URI HTML::HeadParser LWP
>>> 
>>>make test still could not find LWP...
>>>
>>Nope, according to your original report (the
>>relevant part of it is 
>>attached below) it did find LWP, but it couldn't
>>load its LWP::UserAgent 
>>because it couldn't locate URI and HTML::HeadParser.
>>
>>Now can you check that they are installed in the
>>same location as LWP? 
>>What do you get from running these?
>>
>>find /usr/lib/perl5 | grep URI.pm
>>find /usr/lib/perl5 | grep UserAgent.pm
>>find /usr/lib/perl5 | grep HeadParser.pm
>>
>>assuming that all your perl libs are installed under
>>/usr/lib/perl5 as 
>>in your report
>>
>>can you run
>>
>>%perl -MURI -e1?
>>
>>
>>
>Checking for LWP::UserAgent..failed
>Can't locate URI.pm in @INC (@INC contains: ./lib
>
>
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005 .) at (eval 2) line
3.


>BEGIN failed--compilation aborted at
>
>
/usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm

>>line
>>
108.




-- 


_
Stas Bekman JAm_pH  --   Just Another mod_perl Hacker
http://stason.org/  mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




RE: Trouble w/ LWP during mod_perl install

2002-03-18 Thread John Kolvereid

Hey,
  That may have worked.  No descernable errors. 
What's the best way to test it.  Meanwhile I will be
looking in 'Apache Modules w/ Perl & C'.  Please
advise.  Thanks.

  John Kolvereid

--- OCNS Consulting <[EMAIL PROTECTED]> wrote:
> John:
> 
> Consider installing the latest version of Apache
> 1.3.23.
> 
> RB
> 
> -Original Message-
> From: OCNS Consulting [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 18, 2002 8:53 AM
> To: John Kolvereid; Ade Olonoh
> Cc: mod_perl Mailing List
> Subject: RE: Trouble w/ LWP during mod_perl install
> 
> 
> John:
> 
> Try the following:
> 
>   $ perl Makefile.PL \
> USE_APXS=1 \
> EVERYTHING=1 \
> WITH_APXS=/usr/local/apache/bin/apxs 
>   
>   $ make
>   $ make test
>   $ make install
> 
> This will build mod_perl as a DSO outside of the
> Apache source 
> tree using the Apache APXS option -  eXtenSion (APXS) 
> support tool>.
> 
> Let us know.
> 
> RB
> 
> -Original Message-
> From: John Kolvereid [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 8:03 PM
> To: OCNS Consulting; Ade Olonoh
> Cc: mod_perl Mailing List
> Subject: RE: Trouble w/ LWP during mod_perl install
> 
> 
> Hi RB,
>   Here is the configuration I tried:
> perl Makefile.PL \
> APACHE_PREFIX=/usr/local/apache \
> APACHE_SRC=/home/ssl/apache_1.3.22 \
> USE_APXS=1 \
> WITH_APXS=/usr/local/apache/bin/apxs \
> DO_HTTPD=1 \
> USE_APACI=1 \
> EVERYTHING=1
> Both w/ and w/o the APACHE_PRFIX and APACHE_SRC
> lines.
> The errors are attached.  Please advise.  Thanks.
> --- OCNS Consulting <[EMAIL PROTECTED]> wrote:
> > John,
> > 
> > Consider building mod_perl as a DSO outside of
> > Apache. Look for the 
> > section title "Build mod_perl as DSO outside
> Apache
> > source tree via 
> > APXS" in the file INSTALL.apaci.
> > 
> > This should work for you. Let us know.
> > 
> > RB
> > 
> > -Original Message-
> > From: John Kolvereid [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 17, 2002 6:09 PM
> > To: Ade Olonoh
> > Cc: mod_perl Mailing List
> > Subject: Re: Trouble w/ LWP during mod_perl
> install
> > 
> > 
> > Hi Ade,
> >   I followed your suggestion and went to 
> >
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> > 
> >   Most of their steps I had followed before.  Now
> I
> > tried to config mod_perl w/ the following config
> > file
> > as they had suggested:
> >   perl Makefile.PL \
> >   APACHE_PREFIX=/usr/local/apache \
> >   APACHE_SRC=/home/ssl/apache_1.3.22 \
> >   SSL_BASE=/usr/local/ssl \
> >   APACI_ARGS='--enable-module=ssl, \
> >   --enable-shared=ssl, \
> >   --enable-module=proxy, \
> >   --enable-shared=proxy, \
> >   --prefix=/usr/local/apache, \
> >   --enable-module=rewrite' \
> >   DO_HTTPD=1 \
> >   USE_APACI=1 \
> >   EVERYTHING=1
> > 
> > when I try to do a 'make' I get errors such as 
> >   *** No rule to make target 'all'. Stop
> > I can get it to make and make install if I leave
> out
> > the APACI_ARGS, but then it doesn't know how to
> > create
> > Apache w/ ssl.
> >   Yes I do have an existing Apache which I created
> > w/
> > mod_ssl.  It has been working fine.  My goal is to
> > add
> > mod_perl.  Any suggestions.  Please advise.
> > 
> >   Thanks.
> >John Kolvereid
> > 
> > --- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > > > Then I try running
> > > >  /usr/local/apache/bin/apachectl startssl
> > > > 
> > > > Unfortunately I get the msg:
> > > >   Syntax error on line 206 of   
> > > > /usr/local/apache/conf/httpd.conf:
> > > >   Invalid command 'LoadModule', perhaps
> > > mis-spelled or
> > > >   defined by a module not included in the
> server
> >  
> > >  
> > > > configuration
> > > >   could not locate Module SSL (line 206
> > > httpd.conf)
> > > 
> > > Are you installing on top of an existing Apache
> > > directory?  In other
> > > words, was /usr/local/apache/conf/httpd.conf
> > created
> > > by the install, or
> > > did it already exist before you built Apache? 
> It
> > > looks like the conf
> >

RE: Trouble w/ LWP during mod_perl install

2002-03-18 Thread OCNS Consulting

John:

Consider installing the latest version of Apache 1.3.23.

RB

-Original Message-
From: OCNS Consulting [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 8:53 AM
To: John Kolvereid; Ade Olonoh
Cc: mod_perl Mailing List
Subject: RE: Trouble w/ LWP during mod_perl install


John:

Try the following:

$ perl Makefile.PL \
  USE_APXS=1 \
  EVERYTHING=1 \
  WITH_APXS=/usr/local/apache/bin/apxs 

$ make
$ make test
$ make install

This will build mod_perl as a DSO outside of the Apache source 
tree using the Apache APXS option - .

Let us know.

RB

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 8:03 PM
To: OCNS Consulting; Ade Olonoh
Cc: mod_perl Mailing List
Subject: RE: Trouble w/ LWP during mod_perl install


Hi RB,
  Here is the configuration I tried:
perl Makefile.PL \
APACHE_PREFIX=/usr/local/apache \
APACHE_SRC=/home/ssl/apache_1.3.22 \
USE_APXS=1 \
WITH_APXS=/usr/local/apache/bin/apxs \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1
Both w/ and w/o the APACHE_PRFIX and APACHE_SRC lines.
The errors are attached.  Please advise.  Thanks.
--- OCNS Consulting <[EMAIL PROTECTED]> wrote:
> John,
> 
> Consider building mod_perl as a DSO outside of
> Apache. Look for the 
> section title "Build mod_perl as DSO outside Apache
> source tree via 
> APXS" in the file INSTALL.apaci.
> 
> This should work for you. Let us know.
> 
> RB
> 
> -Original Message-
> From: John Kolvereid [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 6:09 PM
> To: Ade Olonoh
> Cc: mod_perl Mailing List
> Subject: Re: Trouble w/ LWP during mod_perl install
> 
> 
> Hi Ade,
>   I followed your suggestion and went to 
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> 
>   Most of their steps I had followed before.  Now I
> tried to config mod_perl w/ the following config
> file
> as they had suggested:
>   perl Makefile.PL \
>   APACHE_PREFIX=/usr/local/apache \
>   APACHE_SRC=/home/ssl/apache_1.3.22 \
>   SSL_BASE=/usr/local/ssl \
>   APACI_ARGS='--enable-module=ssl, \
> --enable-shared=ssl, \
> --enable-module=proxy, \
> --enable-shared=proxy, \
> --prefix=/usr/local/apache, \
> --enable-module=rewrite' \
>   DO_HTTPD=1 \
>   USE_APACI=1 \
>   EVERYTHING=1
> 
> when I try to do a 'make' I get errors such as 
>   *** No rule to make target 'all'. Stop
> I can get it to make and make install if I leave out
> the APACI_ARGS, but then it doesn't know how to
> create
> Apache w/ ssl.
>   Yes I do have an existing Apache which I created
> w/
> mod_ssl.  It has been working fine.  My goal is to
> add
> mod_perl.  Any suggestions.  Please advise.
> 
>   Thanks.
>John Kolvereid
> 
> --- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > > Then I try running
> > >  /usr/local/apache/bin/apachectl startssl
> > > 
> > > Unfortunately I get the msg:
> > >   Syntax error on line 206 of   
> > > /usr/local/apache/conf/httpd.conf:
> > >   Invalid command 'LoadModule', perhaps
> > mis-spelled or
> > >   defined by a module not included in the server
>  
> >  
> > > configuration
> > >   could not locate Module SSL (line 206
> > httpd.conf)
> > 
> > Are you installing on top of an existing Apache
> > directory?  In other
> > words, was /usr/local/apache/conf/httpd.conf
> created
> > by the install, or
> > did it already exist before you built Apache?  It
> > looks like the conf
> > file might expect Apache to have been built with
> DSO
> > support but it
> > wasn't in actuality.
> > 
> > In case you haven't seen this already, you might
> > take a look at this
> > guide to installing Apache with mod_perl and
> > mod_ssl:
> >
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> > 
> > The options it suggests should work for you here.
> > 
> > 
> > --Ade.
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/



RE: Trouble w/ LWP during mod_perl install

2002-03-18 Thread OCNS Consulting

John:

Try the following:

$ perl Makefile.PL \
  USE_APXS=1 \
  EVERYTHING=1 \
  WITH_APXS=/usr/local/apache/bin/apxs 

$ make
$ make test
$ make install

This will build mod_perl as a DSO outside of the Apache source 
tree using the Apache APXS option - .

Let us know.

RB

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 8:03 PM
To: OCNS Consulting; Ade Olonoh
Cc: mod_perl Mailing List
Subject: RE: Trouble w/ LWP during mod_perl install


Hi RB,
  Here is the configuration I tried:
perl Makefile.PL \
APACHE_PREFIX=/usr/local/apache \
APACHE_SRC=/home/ssl/apache_1.3.22 \
USE_APXS=1 \
WITH_APXS=/usr/local/apache/bin/apxs \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1
Both w/ and w/o the APACHE_PRFIX and APACHE_SRC lines.
The errors are attached.  Please advise.  Thanks.
--- OCNS Consulting <[EMAIL PROTECTED]> wrote:
> John,
> 
> Consider building mod_perl as a DSO outside of
> Apache. Look for the 
> section title "Build mod_perl as DSO outside Apache
> source tree via 
> APXS" in the file INSTALL.apaci.
> 
> This should work for you. Let us know.
> 
> RB
> 
> -Original Message-
> From: John Kolvereid [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 6:09 PM
> To: Ade Olonoh
> Cc: mod_perl Mailing List
> Subject: Re: Trouble w/ LWP during mod_perl install
> 
> 
> Hi Ade,
>   I followed your suggestion and went to 
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> 
>   Most of their steps I had followed before.  Now I
> tried to config mod_perl w/ the following config
> file
> as they had suggested:
>   perl Makefile.PL \
>   APACHE_PREFIX=/usr/local/apache \
>   APACHE_SRC=/home/ssl/apache_1.3.22 \
>   SSL_BASE=/usr/local/ssl \
>   APACI_ARGS='--enable-module=ssl, \
> --enable-shared=ssl, \
> --enable-module=proxy, \
> --enable-shared=proxy, \
> --prefix=/usr/local/apache, \
> --enable-module=rewrite' \
>   DO_HTTPD=1 \
>   USE_APACI=1 \
>   EVERYTHING=1
> 
> when I try to do a 'make' I get errors such as 
>   *** No rule to make target 'all'. Stop
> I can get it to make and make install if I leave out
> the APACI_ARGS, but then it doesn't know how to
> create
> Apache w/ ssl.
>   Yes I do have an existing Apache which I created
> w/
> mod_ssl.  It has been working fine.  My goal is to
> add
> mod_perl.  Any suggestions.  Please advise.
> 
>   Thanks.
>John Kolvereid
> 
> --- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > > Then I try running
> > >  /usr/local/apache/bin/apachectl startssl
> > > 
> > > Unfortunately I get the msg:
> > >   Syntax error on line 206 of   
> > > /usr/local/apache/conf/httpd.conf:
> > >   Invalid command 'LoadModule', perhaps
> > mis-spelled or
> > >   defined by a module not included in the server
>  
> >  
> > > configuration
> > >   could not locate Module SSL (line 206
> > httpd.conf)
> > 
> > Are you installing on top of an existing Apache
> > directory?  In other
> > words, was /usr/local/apache/conf/httpd.conf
> created
> > by the install, or
> > did it already exist before you built Apache?  It
> > looks like the conf
> > file might expect Apache to have been built with
> DSO
> > support but it
> > wasn't in actuality.
> > 
> > In case you haven't seen this already, you might
> > take a look at this
> > guide to installing Apache with mod_perl and
> > mod_ssl:
> >
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> > 
> > The options it suggests should work for you here.
> > 
> > 
> > --Ade.
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/



Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread Ged Haywood

Hi John,

On Sun, 17 Mar 2002, John Kolvereid wrote:

>   Thanks for sticking in there w/ me.

:)

>  There are a great many options and the number
> of combinations is awesome.

True, but there's no point worrying about the number of combinations,
you need to worry about setting things up the way you want them.

> Only 1 is correct,

It's not really like that.  (You just have to decide how you want
things to be set up...:)

> I ran the build again for the mod_perl and apache using
> APACHE_PREFIX and APACHE_SRC and SSL_BASE.  When finished I tried
> the apachectl startssl and got the same LoadModule error as before.

I really think you should forget ssl for the moment until you get a
grip on compiling and configuring Apache and mod_perl.  And PLEASE
don't run apachectl until you know what it's going to do.  You can
start Apache without using a script.

> I tried the httpd -l and mod_so.c WAS present.  To be certain I did
> a 'which httpd'.  It was using the one in /usr/sbin but that's not
> new, it is dated Oct 19 2000.

That's not the one you're running.  'which' tells you what will be
used if you call the binary directly without giving the full path to
the binary, but if you try to run it with 'apachectl' then you could
be using a different one.  Why not just delete it, or rename it if you
want to keep it?  Keep a notebook to record the changes you make so
that you don't forget what you've changed.  In my last message I asked
you to run the binary by calling it with the full path name.  Don't
rely on the path in your environment by running a binary without the
full path name at this stage, you'll only confuse yourself even more.

> Moreover, the httpd.conf in the conf directory is dated Mar 4.

When you do 'make install' the scripts won't overwrite your existing
configuration.  If you delete, rename or move the conf directory and
then re-install you'll get a new httpd.conf.

> There is one dated Mar 17 (today) named httpd.conf.default but it
> does not include any reference to mod_perl.

If you compile mod_perl in statically it doesn't have to have a
loadmodule directive for mod_perl - in fact it shouldn't have one.
You need a completely new httpd.conf which is installed at the time
you build Apache and mod_perl.  But do please read it when you've
finally made it, because there are as you have said lots of things
you need to think about.

> What should I try next.

All the things I've said in my last three messages.  They *will* work
if you clean everything up like I said, RedHat 6.2 really has no
problems with Apache and mod_perl.

73,
Ged.




Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread Stas Bekman

John Kolvereid wrote:
> Hi Stas,
>I am currently running w/ openssl-0.9.6b.  ALso, I
> tried your suggestion:
> 
>  perl -MCPAN -eshell
>  cpan> install URI HTML::HeadParser LWP
>  
> make test still could not find LWP...

Nope, according to your original report (the relevant part of it is 
attached below) it did find LWP, but it couldn't load its LWP::UserAgent 
because it couldn't locate URI and HTML::HeadParser.

Now can you check that they are installed in the same location as LWP? 
What do you get from running these?

find /usr/lib/perl5 | grep URI.pm
find /usr/lib/perl5 | grep UserAgent.pm
find /usr/lib/perl5 | grep HeadParser.pm

assuming that all your perl libs are installed under /usr/lib/perl5 as 
in your report

can you run

%perl -MURI -e1?


>>>Checking for LWP::UserAgent..failed
>>>Can't locate URI.pm in @INC (@INC contains: ./lib
>>>
>>/usr/lib/perl5/5.00503/i386-linux
>>/usr/lib/perl5/5.00503
>>/usr/lib/perl5/site_perl/5.005/i386-linux
>>/usr/lib/perl5/site_perl/5.005 .) at (eval 2) line
>>3.
>>
>>>BEGIN failed--compilation aborted at
>>>
>>/usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm line
>>108.



-- 


_
Stas Bekman JAm_pH  --   Just Another mod_perl Hacker
http://stason.org/  mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Re: Trouble w/ LWP during mod_perl install

2002-03-18 Thread John Kolvereid

Hi Stas,
   I am currently running w/ openssl-0.9.6b.  ALso, I
tried your suggestion:

 perl -MCPAN -eshell
 cpan> install URI HTML::HeadParser LWP
 
make test still could not find LWP...

But thanks anyways.
  John Kolvereid
--- Stas Bekman <[EMAIL PROTECTED]> wrote:
> John Kolvereid wrote:
> > Hi Ade,
> >I am sending the errs as an attachment. 
> Thanks.
> 
> It helps to actually *look* at the build log:
> 
> > Will configure via APACI
> ...
> > o ssl_module uses ConfigStart/End
> >   + SSL interface: mod_ssl/2.8.5
> >   + SSL interface build type: DSO
> >   + SSL interface compatibility: enabled
> >   + SSL interface experimental code: disabled
> >   + SSL interface conservative code: disabled
> >   + SSL interface vendor extensions: disabled
> >   + SSL interface plugin: Built-in SDBM
> >   + SSL library path: /usr/local/ssl
> >   + SSL library version: SSLeay 0.9.0b
> 29-Jun-1998
> > Error: OpenSSL VERSIONS BELOW 0.9.3 ARE NO LONGER
> SUPPORTED.
> > Hint:  Use OpenSSL version 0.9.3 or higher!
> 
> hint, hint: install openssl 0.9.3 or higher!
> 
> > Checking for LWP::UserAgent..failed
> > Can't locate URI.pm in @INC (@INC contains: ./lib
> /usr/lib/perl5/5.00503/i386-linux
> /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux
> /usr/lib/perl5/site_perl/5.005 .) at (eval 2) line
> 3.
> > BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm line
> 108.
> > 
> > The libwww-perl library is needed to run the test
> suite.
> > Installation of this library is recommended, but
> not required.
> > 
> > Checking for HTML::HeadParserfailed
> > Can't locate HTML/HeadParser.pm in @INC (@INC
> contains: ./lib /usr/lib/perl5/5.00503/i386-linux
> /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux
> /usr/lib/perl5/site_perl/5.005 .) at Makefile.PL
> line 1154.
> > 
> > The HTML-Parser package is needed (by libwww-perl)
> to run the test suite.
> 
> install URI and HTML::HeadParser packages.
> 
> Most likely you've installed an RPM or a similar
> package of libwww-perl 
> without installing its prerequisites.
> 
> Do:
> 
> perl -MCPAN -eshell
> cpan> install URI HTML::HeadParser LWP
> 
> need to specify explicitly since LWP is already
> installed.
> 
> and 'make test' should work.
> 
> 
> 
>
_
> Stas Bekman JAm_pH  --   Just
> Another mod_perl Hacker
> http://stason.org/  mod_perl Guide  
> http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED]  http://ticketmaster.com
> http://apacheweek.com
> http://singlesheaven.com http://perl.apache.org
> http://perlmonth.com/
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/



Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Stas Bekman

John Kolvereid wrote:
> Hi Ade,
>I am sending the errs as an attachment.  Thanks.

It helps to actually *look* at the build log:

> Will configure via APACI
...
> o ssl_module uses ConfigStart/End
>   + SSL interface: mod_ssl/2.8.5
>   + SSL interface build type: DSO
>   + SSL interface compatibility: enabled
>   + SSL interface experimental code: disabled
>   + SSL interface conservative code: disabled
>   + SSL interface vendor extensions: disabled
>   + SSL interface plugin: Built-in SDBM
>   + SSL library path: /usr/local/ssl
>   + SSL library version: SSLeay 0.9.0b 29-Jun-1998
> Error: OpenSSL VERSIONS BELOW 0.9.3 ARE NO LONGER SUPPORTED.
> Hint:  Use OpenSSL version 0.9.3 or higher!

hint, hint: install openssl 0.9.3 or higher!

> Checking for LWP::UserAgent..failed
> Can't locate URI.pm in @INC (@INC contains: ./lib /usr/lib/perl5/5.00503/i386-linux 
>/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux 
>/usr/lib/perl5/site_perl/5.005 .) at (eval 2) line 3.
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm 
>line 108.
> 
> The libwww-perl library is needed to run the test suite.
> Installation of this library is recommended, but not required.
> 
> Checking for HTML::HeadParserfailed
> Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib 
>/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 
>/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at 
>Makefile.PL line 1154.
> 
> The HTML-Parser package is needed (by libwww-perl) to run the test suite.

install URI and HTML::HeadParser packages.

Most likely you've installed an RPM or a similar package of libwww-perl 
without installing its prerequisites.

Do:

perl -MCPAN -eshell
cpan> install URI HTML::HeadParser LWP

need to specify explicitly since LWP is already installed.

and 'make test' should work.



_
Stas Bekman JAm_pH  --   Just Another mod_perl Hacker
http://stason.org/  mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread John Kolvereid

Hi Ged,
  Thanks for sticking in there w/ me.  This is
anything but simple.  It's like anything else - if you
understand it you cannot understand why other can't
see it your way.  I have been reading and trying many
things.  They all seem to converge on the configure
aspect.  There are a great many options and the number
of combinations is awesome.  Only 1 is correct, and I
haven't found it yet. 
   I ran the build again for the mod_perl and apache
using APACHE_PREFIX and APACHE_SRC and SSL_BASE.  When
finished I tried the apachectl startssl and got the
same LoadModule error as before.
I tried the httpd -l and mod_so.c WAS present.  To be
certain I did a 'which httpd'.  It was using the one
in /usr/sbin
but that's not new, it is dated Oct 19 2000. 
Moreover, the httpd.conf in the conf directory is
dated
Mar 4.  There is one dated Mar 17 (today) named
  httpd.conf.default
but it does not include any reference to mod_perl.

   What should I try next.  I have been following the
instructions wherever as closely as I can figure, but
so far nothing has worked.  Please advise.  Thanks.

--- Ged Haywood <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> On Sun, 17 Mar 2002, John Kolvereid wrote:
> 
> >   In order to try and install mod_perl-1.26 in
> RedHat
> > 6.2 w/ Apache 1.3.22 I, as ROOT, run the following
> > in my /home/ssl/mod_perl-1.26:
> >  perl Makefile.PL \
> [snip]
> [snip]
> > Then I try running
> >  /usr/local/apache/bin/apachectl startssl
> 
> I think you're getting confused with too many Apache
> modules.  Try to
> build without ssl to begin with, so that you can
> check that what
> you're doing for mod_perl is OK.
> 
> Please read the installation section of the Guide
> and follow the
> instructions carefully.  You will see that it
> suggests that you do the
> 'make' and 'make test' steps NOT as root, then 'make
> install' as root.
> It's not unknown for things to get a little screwy
> if you try to build
> as root, and especially if sometimes you're logged
> in as root and
> sometimes you're not.  It might be best if you
> delete the source trees
> in /home/ssl/mod_perl-1.26 and
> /home/ssl/apache_1.3.22 and start
> again, or start again in a new directory, say
> something like this:
> 
> $ cd /home/fred/src/apache_1.3.22/
> $ tar xzvf .../apache_1.3.22.tar.gz
> $ cd /home/fred/src/mod_perl-1.26/
> $ tar xzvf .../mod_perl-1.26.tar.gz
> $ cp makepl_args.mod_perl .
> $ perl Makefile.PL
> $ make
> $ su
> # make install
> # ls -l /usr/local/sbin/httpd
> ... (Check here that the date and time of the binary
> look sensible:)
> # /usr/local/sbin/httpd -f
> /usr/local/apache/conf/httpd.conf
> # tail /usr/local/apache/logs/error_log
> ... (Check that Apache started and that it says it's
> a mod_perl Apache:)
> 
> The file makepl_args.mod_perl is below, and there is
> a sample in the
> mod_perl/eg directory too.  You might want to adjust
> these a little to
> suit your needs.  You can also put the file in the
> home directory of
> the user who does 'make' but then you need to prefix
> the filename with
> a dot, i.e. ".makepl_args.mod_perl".
> 
> >   Invalid command 'LoadModule', perhaps
> mis-spelled or
> >   defined by a module not included in the server  
>  
> > configuration
> >   could not locate Module SSL (line 206
> httpd.conf)
> > 
> > My only recourse is then to rebuild Apache w/o
> mod_perl.
> 
> This error has nothing to do with mod_perl.  You
> have a 'loadmodule'
> directive in httpd.conf but you don't have mod_so.c
> compiled into the
> Apache which you are trying to start using that
> httpd.conf - as you
> will see if you will get the output of 'httpd -l' as
> I asked you to do
> in my previous message.  Try to understand what
> you're doing, it's not
> really that complicated if you are methodical.  You
> are going to build
> a binary called 'httpd' and you can run it without
> 'apachectl'.  This
> is a script that does some other stuff too.  You can
> try for example
> 'apachectl configtest'.  'apachectl' is created by
> 'make install'.
> You need to check that it is starting the right
> Apache, i.e. the one
> you just built!  Be careful, there may be several of
> them (both httpd
> and apachectl) kicking around if you have been
> trying lots of builds
> in desperation...
> 
> > I am having a great deal of difficulty installing
> mod_perl.  I am
> > not sure it is worth it.
> 
> It's worth it but you will have to do quite a bit of
> reading and it
> won't all happen overnight.  Your difficulties at
> the moment do not
> seem to stem primarily from mod_perl itself.
> 
> >   I have been reading installation excerpts frm
> various sources
> 
> ...and then you have to do what it says in the
> things you've read. :)
> 
> > w/ Perl and C', and the internet CPAN sites.  My
> build in
> 
> ?  Your message seems to have been truncated here.
> 
> 73,
> Ged.
> 
>
8<--
> USE_APACI=1
> APACHE_PREFIX=/usr/local
> APACHE_

RE: Trouble w/ LWP during mod_perl install

2002-03-17 Thread John Kolvereid

Hi RB,
  Here is the configuration I tried:
perl Makefile.PL \
APACHE_PREFIX=/usr/local/apache \
APACHE_SRC=/home/ssl/apache_1.3.22 \
USE_APXS=1 \
WITH_APXS=/usr/local/apache/bin/apxs \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1
Both w/ and w/o the APACHE_PRFIX and APACHE_SRC lines.
The errors are attached.  Please advise.  Thanks.
--- OCNS Consulting <[EMAIL PROTECTED]> wrote:
> John,
> 
> Consider building mod_perl as a DSO outside of
> Apache. Look for the 
> section title "Build mod_perl as DSO outside Apache
> source tree via 
> APXS" in the file INSTALL.apaci.
> 
> This should work for you. Let us know.
> 
> RB
> 
> -Original Message-
> From: John Kolvereid [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 6:09 PM
> To: Ade Olonoh
> Cc: mod_perl Mailing List
> Subject: Re: Trouble w/ LWP during mod_perl install
> 
> 
> Hi Ade,
>   I followed your suggestion and went to 
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> 
>   Most of their steps I had followed before.  Now I
> tried to config mod_perl w/ the following config
> file
> as they had suggested:
>   perl Makefile.PL \
>   APACHE_PREFIX=/usr/local/apache \
>   APACHE_SRC=/home/ssl/apache_1.3.22 \
>   SSL_BASE=/usr/local/ssl \
>   APACI_ARGS='--enable-module=ssl, \
> --enable-shared=ssl, \
> --enable-module=proxy, \
> --enable-shared=proxy, \
> --prefix=/usr/local/apache, \
> --enable-module=rewrite' \
>   DO_HTTPD=1 \
>   USE_APACI=1 \
>   EVERYTHING=1
> 
> when I try to do a 'make' I get errors such as 
>   *** No rule to make target 'all'. Stop
> I can get it to make and make install if I leave out
> the APACI_ARGS, but then it doesn't know how to
> create
> Apache w/ ssl.
>   Yes I do have an existing Apache which I created
> w/
> mod_ssl.  It has been working fine.  My goal is to
> add
> mod_perl.  Any suggestions.  Please advise.
> 
>   Thanks.
>John Kolvereid
> 
> --- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > > Then I try running
> > >  /usr/local/apache/bin/apachectl startssl
> > > 
> > > Unfortunately I get the msg:
> > >   Syntax error on line 206 of   
> > > /usr/local/apache/conf/httpd.conf:
> > >   Invalid command 'LoadModule', perhaps
> > mis-spelled or
> > >   defined by a module not included in the server
>  
> >  
> > > configuration
> > >   could not locate Module SSL (line 206
> > httpd.conf)
> > 
> > Are you installing on top of an existing Apache
> > directory?  In other
> > words, was /usr/local/apache/conf/httpd.conf
> created
> > by the install, or
> > did it already exist before you built Apache?  It
> > looks like the conf
> > file might expect Apache to have been built with
> DSO
> > support but it
> > wasn't in actuality.
> > 
> > In case you haven't seen this already, you might
> > take a look at this
> > guide to installing Apache with mod_perl and
> > mod_ssl:
> >
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> > 
> > The options it suggests should work for you here.
> > 
> > 
> > --Ade.
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/


bld2.err
Description: bld2.err


Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread John Kolvereid

Hi Ade,
   I am sending the errs as an attachment.  Thanks.
 John Kolvereid
--- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> >   Most of their steps I had followed before.  Now
> I
> > tried to config mod_perl w/ the following config
> file
> > as they had suggested:
> >   perl Makefile.PL \
> >   APACHE_PREFIX=/usr/local/apache \
> >   APACHE_SRC=/home/ssl/apache_1.3.22 \
> >   SSL_BASE=/usr/local/ssl \
> >   APACI_ARGS='--enable-module=ssl, \
> >   --enable-shared=ssl, \
> >   --enable-module=proxy, \
> >   --enable-shared=proxy, \
> >   --prefix=/usr/local/apache, \
> >   --enable-module=rewrite' \
> >   DO_HTTPD=1 \
> >   USE_APACI=1 \
> >   EVERYTHING=1
> > 
> > when I try to do a 'make' I get errors such as 
> >   *** No rule to make target 'all'. Stop
> 
> Can you send the full output after you run the "perl
> Makefile.PL"
> above?  There might be some errors there that would
> give a hint to why
> it's not working.
> 
> --Ade.


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

Will configure via APACI
cp apaci/Makefile.libdir ../apache_1.3.22/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl ../apache_1.3.22/src/modules/perl/Makefile.tmpl
cp apaci/README ../apache_1.3.22/src/modules/perl/README
cp apaci/configure ../apache_1.3.22/src/modules/perl/configure
cp apaci/libperl.module ../apache_1.3.22/src/modules/perl/libperl.module
cp apaci/mod_perl.config.sh ../apache_1.3.22/src/modules/perl/mod_perl.config.sh
cp apaci/load_modules.pl ../apache_1.3.22/src/modules/perl/load_modules.pl
cp apaci/find_source ../apache_1.3.22/src/modules/perl/find_source
cp apaci/apxs_cflags ../apache_1.3.22/src/modules/perl/apxs_cflags
cp apaci/perl_config ../apache_1.3.22/src/modules/perl/perl_config
cp apaci/mod_perl.exp ../apache_1.3.22/src/modules/perl/mod_perl.exp
PerlDispatchHandler.enabled
PerlChildInitHandlerenabled
PerlChildExitHandlerenabled
PerlPostReadRequestHandler..enabled
PerlTransHandlerenabled
PerlHeaderParserHandler.enabled
PerlAccessHandler...enabled
PerlAuthenHandler...enabled
PerlAuthzHandlerenabled
PerlTypeHandler.enabled
PerlFixupHandlerenabled
PerlHandler.enabled
PerlLogHandler..enabled
PerlInitHandler.enabled
PerlCleanupHandler..enabled
PerlRestartHandler..enabled
PerlStackedHandlers.enabled
PerlMethodHandlers..enabled
PerlDirectiveHandlers...enabled
PerlTableApienabled
PerlLogApi..enabled
PerlUriApi..enabled
PerlUtilApi.enabled
PerlFileApi.enabled
PerlConnectionApi...enabled
PerlServerApi...enabled
PerlSectionsenabled
PerlSSI.enabled
Will run tests as User: 'nobody' Group: 'root'
(cd ../apache_1.3.22 && CC="cc" ./configure 
--activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT --enable-module=ssl  
\
  --enable-shared=ssl  \
  --enable-module=proxy  \
  --enable-shared=proxy  \
  --prefix=/usr/local/apache  \
  --enable-module=rewrite)
Configuring for Apache, Version 1.3.22
 + using installation path layout: Apache (config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
 + enabling mod_so for DSO support
Creating Makefile in src
 + configured for Linux platform
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
o rewrite_module uses ConfigStart/End
 + using -lndbm for DBM support
  enabling DBM support for mod_rewrite
o ssl_module uses ConfigStart/End
  + SSL interface: mod_ssl/2.8.5
  + SSL interface build type: DSO
  + SSL interface compatibility: enabled
  + SSL interface experimental code: disabled
  + SSL interface conservative code: disabled
  + SSL interface vendor extensions: disabled
  + SSL interface plugin: Built-in SDBM
  + SSL library path: /usr/local/ssl
  + SSL library version: SSLeay 0.9.0b 29-Jun-1998
Error: OpenSSL VERSIONS BELOW 0.9.3 ARE NO LONGER SUPPORTED.
Hint:  Use OpenSSL version 0.9.3 or higher!
Checking CGI.pm VERSION..ok
Checking for LWP::UserAgent..failed
Can't locate URI.pm in @INC (@INC contains: ./lib /usr/lib/perl5/5.00503/i386-linux 
/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux 
/usr/lib/perl5/site_perl/5.005 .) at (eval 2) line 3.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm 
line 108.

The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.

Checking for HTML::HeadParserfailed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib 
/usr/lib/perl5/5.00503/i3

Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Ged Haywood

Hi there,

On Sun, 17 Mar 2002, John Kolvereid wrote:

>   In order to try and install mod_perl-1.26 in RedHat
> 6.2 w/ Apache 1.3.22 I, as ROOT, run the following
> in my /home/ssl/mod_perl-1.26:
>  perl Makefile.PL \
[snip]
[snip]
> Then I try running
>  /usr/local/apache/bin/apachectl startssl

I think you're getting confused with too many Apache modules.  Try to
build without ssl to begin with, so that you can check that what
you're doing for mod_perl is OK.

Please read the installation section of the Guide and follow the
instructions carefully.  You will see that it suggests that you do the
'make' and 'make test' steps NOT as root, then 'make install' as root.
It's not unknown for things to get a little screwy if you try to build
as root, and especially if sometimes you're logged in as root and
sometimes you're not.  It might be best if you delete the source trees
in /home/ssl/mod_perl-1.26 and /home/ssl/apache_1.3.22 and start
again, or start again in a new directory, say something like this:

$ cd /home/fred/src/apache_1.3.22/
$ tar xzvf .../apache_1.3.22.tar.gz
$ cd /home/fred/src/mod_perl-1.26/
$ tar xzvf .../mod_perl-1.26.tar.gz
$ cp makepl_args.mod_perl .
$ perl Makefile.PL
$ make
$ su
# make install
# ls -l /usr/local/sbin/httpd
... (Check here that the date and time of the binary look sensible:)
# /usr/local/sbin/httpd -f /usr/local/apache/conf/httpd.conf
# tail /usr/local/apache/logs/error_log
... (Check that Apache started and that it says it's a mod_perl Apache:)

The file makepl_args.mod_perl is below, and there is a sample in the
mod_perl/eg directory too.  You might want to adjust these a little to
suit your needs.  You can also put the file in the home directory of
the user who does 'make' but then you need to prefix the filename with
a dot, i.e. ".makepl_args.mod_perl".

>   Invalid command 'LoadModule', perhaps mis-spelled or
>   defined by a module not included in the server
> configuration
>   could not locate Module SSL (line 206 httpd.conf)
> 
> My only recourse is then to rebuild Apache w/o mod_perl.

This error has nothing to do with mod_perl.  You have a 'loadmodule'
directive in httpd.conf but you don't have mod_so.c compiled into the
Apache which you are trying to start using that httpd.conf - as you
will see if you will get the output of 'httpd -l' as I asked you to do
in my previous message.  Try to understand what you're doing, it's not
really that complicated if you are methodical.  You are going to build
a binary called 'httpd' and you can run it without 'apachectl'.  This
is a script that does some other stuff too.  You can try for example
'apachectl configtest'.  'apachectl' is created by 'make install'.
You need to check that it is starting the right Apache, i.e. the one
you just built!  Be careful, there may be several of them (both httpd
and apachectl) kicking around if you have been trying lots of builds
in desperation...

> I am having a great deal of difficulty installing mod_perl.  I am
> not sure it is worth it.

It's worth it but you will have to do quite a bit of reading and it
won't all happen overnight.  Your difficulties at the moment do not
seem to stem primarily from mod_perl itself.

>   I have been reading installation excerpts frm various sources

...and then you have to do what it says in the things you've read. :)

> w/ Perl and C', and the internet CPAN sites.  My build in

?  Your message seems to have been truncated here.

73,
Ged.

8<--
USE_APACI=1
APACHE_PREFIX=/usr/local
APACHE_SRC=../apache_1.3.12/src
DO_HTTPD=1
EVERYTHING=1
ALL_HOOKS=1
PERL_SSI=1
PERL_SECTIONS=1
APACI_ARGS=--sbindir=/usr/local/sbin/
APACI_ARGS=--sysconfdir=/usr/local/apache/conf
APACI_ARGS=--runtimedir=/usr/local/apache/run
APACI_ARGS=--logfiledir=/usr/local/apache/logs
8<--




Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Ade Olonoh

>   Most of their steps I had followed before.  Now I
> tried to config mod_perl w/ the following config file
> as they had suggested:
>   perl Makefile.PL \
>   APACHE_PREFIX=/usr/local/apache \
>   APACHE_SRC=/home/ssl/apache_1.3.22 \
>   SSL_BASE=/usr/local/ssl \
>   APACI_ARGS='--enable-module=ssl, \
> --enable-shared=ssl, \
> --enable-module=proxy, \
> --enable-shared=proxy, \
> --prefix=/usr/local/apache, \
> --enable-module=rewrite' \
>   DO_HTTPD=1 \
>   USE_APACI=1 \
>   EVERYTHING=1
> 
> when I try to do a 'make' I get errors such as 
>   *** No rule to make target 'all'. Stop

Can you send the full output after you run the "perl Makefile.PL"
above?  There might be some errors there that would give a hint to why
it's not working.

--Ade.



RE: Trouble w/ LWP during mod_perl install

2002-03-17 Thread OCNS Consulting

John,

Consider building mod_perl as a DSO outside of Apache. Look for the 
section title "Build mod_perl as DSO outside Apache source tree via 
APXS" in the file INSTALL.apaci.

This should work for you. Let us know.

RB

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 6:09 PM
To: Ade Olonoh
Cc: mod_perl Mailing List
Subject: Re: Trouble w/ LWP during mod_perl install


Hi Ade,
  I followed your suggestion and went to 
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_

  Most of their steps I had followed before.  Now I
tried to config mod_perl w/ the following config file
as they had suggested:
  perl Makefile.PL \
  APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=/home/ssl/apache_1.3.22 \
  SSL_BASE=/usr/local/ssl \
  APACI_ARGS='--enable-module=ssl, \
  --enable-shared=ssl, \
  --enable-module=proxy, \
  --enable-shared=proxy, \
  --prefix=/usr/local/apache, \
  --enable-module=rewrite' \
  DO_HTTPD=1 \
  USE_APACI=1 \
  EVERYTHING=1

when I try to do a 'make' I get errors such as 
  *** No rule to make target 'all'. Stop
I can get it to make and make install if I leave out
the APACI_ARGS, but then it doesn't know how to create
Apache w/ ssl.
  Yes I do have an existing Apache which I created w/
mod_ssl.  It has been working fine.  My goal is to add
mod_perl.  Any suggestions.  Please advise.

  Thanks.
   John Kolvereid

--- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > Then I try running
> >  /usr/local/apache/bin/apachectl startssl
> > 
> > Unfortunately I get the msg:
> >   Syntax error on line 206 of   
> > /usr/local/apache/conf/httpd.conf:
> >   Invalid command 'LoadModule', perhaps
> mis-spelled or
> >   defined by a module not included in the server  
>  
> > configuration
> >   could not locate Module SSL (line 206
> httpd.conf)
> 
> Are you installing on top of an existing Apache
> directory?  In other
> words, was /usr/local/apache/conf/httpd.conf created
> by the install, or
> did it already exist before you built Apache?  It
> looks like the conf
> file might expect Apache to have been built with DSO
> support but it
> wasn't in actuality.
> 
> In case you haven't seen this already, you might
> take a look at this
> guide to installing Apache with mod_perl and
> mod_ssl:
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> 
> The options it suggests should work for you here.
> 
> 
> --Ade.


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/




Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread John Kolvereid

Hi Ade,
  I followed your suggestion and went to 
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_

  Most of their steps I had followed before.  Now I
tried to config mod_perl w/ the following config file
as they had suggested:
  perl Makefile.PL \
  APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=/home/ssl/apache_1.3.22 \
  SSL_BASE=/usr/local/ssl \
  APACI_ARGS='--enable-module=ssl, \
  --enable-shared=ssl, \
  --enable-module=proxy, \
  --enable-shared=proxy, \
  --prefix=/usr/local/apache, \
  --enable-module=rewrite' \
  DO_HTTPD=1 \
  USE_APACI=1 \
  EVERYTHING=1

when I try to do a 'make' I get errors such as 
  *** No rule to make target 'all'. Stop
I can get it to make and make install if I leave out
the APACI_ARGS, but then it doesn't know how to create
Apache w/ ssl.
  Yes I do have an existing Apache which I created w/
mod_ssl.  It has been working fine.  My goal is to add
mod_perl.  Any suggestions.  Please advise.

  Thanks.
   John Kolvereid

--- Ade Olonoh <[EMAIL PROTECTED]> wrote:
> > Then I try running
> >  /usr/local/apache/bin/apachectl startssl
> > 
> > Unfortunately I get the msg:
> >   Syntax error on line 206 of   
> > /usr/local/apache/conf/httpd.conf:
> >   Invalid command 'LoadModule', perhaps
> mis-spelled or
> >   defined by a module not included in the server  
>  
> > configuration
> >   could not locate Module SSL (line 206
> httpd.conf)
> 
> Are you installing on top of an existing Apache
> directory?  In other
> words, was /usr/local/apache/conf/httpd.conf created
> by the install, or
> did it already exist before you built Apache?  It
> looks like the conf
> file might expect Apache to have been built with DSO
> support but it
> wasn't in actuality.
> 
> In case you haven't seen this already, you might
> take a look at this
> guide to installing Apache with mod_perl and
> mod_ssl:
>
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_
> 
> The options it suggests should work for you here.
> 
> 
> --Ade.


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/



Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Ade Olonoh

> Then I try running
>  /usr/local/apache/bin/apachectl startssl
> 
> Unfortunately I get the msg:
>   Syntax error on line 206 of   
> /usr/local/apache/conf/httpd.conf:
>   Invalid command 'LoadModule', perhaps mis-spelled or
>   defined by a module not included in the server
> configuration
>   could not locate Module SSL (line 206 httpd.conf)

Are you installing on top of an existing Apache directory?  In other
words, was /usr/local/apache/conf/httpd.conf created by the install, or
did it already exist before you built Apache?  It looks like the conf
file might expect Apache to have been built with DSO support but it
wasn't in actuality.

In case you haven't seen this already, you might take a look at this
guide to installing Apache with mod_perl and mod_ssl:
http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_ 
The options it suggests should work for you here.


--Ade.



Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread John Kolvereid

Hi Ged,
  In order to try and install mod_perl-1.26 in RedHat
6.2 w/ Apache 1.3.22 I, as ROOT, run the following
in my /home/ssl/mod_perl-1.26:
 perl Makefile.PL \
   APACHE_PREFIX=/usr/local/apache \
   APACHE_SRC=/home/ssl/apache_1.3.22 \
   SSL_BASE=/usr/local/ssl \
   DO_HTTPD=1 \
   USE_APACI=1 \
   EVERYTHING=1
 make
 make install

Then from /home/ssl/apache_1.3.22 I run
 make install

Then I try running
 /usr/local/apache/bin/apachectl startssl

Unfortunately I get the msg:
  Syntax error on line 206 of   
/usr/local/apache/conf/httpd.conf:
  Invalid command 'LoadModule', perhaps mis-spelled or
  defined by a module not included in the server
configuration
  could not locate Module SSL (line 206 httpd.conf)

My only recourse is then to rebuild Apache w/o
mod_perl.

I am having a great deal of difficulty installing
mod_perl.  I am not sure it is worth it.  Benefits
seem great, but the hurdles to get there seem
insurmountable.  Please advise.  Thanks.


  I have been reading installation excerpts frm
various sources which include 'Writing Apache Modules
w/ Perl and C', and the internet CPAN sites.  My build
in


  John Kolvereid



--- Ged Haywood <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> On Sun, 17 Mar 2002, John Kolvereid wrote:
> 
> > I got your name from the mod_perl mailing list,
> 
> Please post to the list, not to an individual
> member, unless you are
> replying to a message from that member on the list -
> in which case you
> should normally cc the list.  (You will find more
> help about this kind
> of thing in http://perl.apache.org/email-etiquette
> and there are some
> links in there to other documents you should also
> read... :)
> 
> > I am trying to install mod_perl-1.26 on Linux
> RedHat 6.2 w/
> > Apache-1.3.22.  I am using the following build
> file:
> >   perl Makefile.PL \
> >   APACHE_PREFIX=/usr/local/apache \
> >   APACHE_SRC=/home/ssl/apache_1.3.22 \
> >   DO_HTTPD=1 \
> >   USE_APACI=1 \
> >   EVERYTHING=1
> > 
> > I get a lot of messages,
> 
> That's normal.  You haven't said where you have put
> the mod_perl
> source, can I assume that it is
> "/home/ssl/mod_perl-1.26"?
> 
> > then I run 'make', and 'make test'.
> > Problem is that make test complains that it cannot
> find LWP.
> 
> It isn't absolutely necessary but it's a good idea
> to get 'make test'
> to run successfully, which needs LWP.
> 
> > I downloaded and installed (I think)
> libwww-perl-5.64.
> 
> How did you do that?  It's probably easiest to use
> CPAN.pm:
> 
> perl -MCPAN -eshell
> 
> > Unfortunately, it didn't seem to resolve my LWP
> problem.  When I do
> > a 'make install' nothing seems to change.
> 
> H.  You aren't helping me very much there.  Are
> you following all
> the instructions carefully?  What happens?
> 
> 'make install' doesn't rely on LWP.  You probably
> need to be root to
> 'make install'.  Do you think you have successfully
> compiled a binary
> after the 'make' step?  It will be called 'httpd'. 
> Check the date and
> time of the binary to make sure it's the one you've
> built and not just
> one that was lying around in there from an old
> installation.  Can you
> run it with 'httpd -l' and post the result?
> 
> 73,
> Ged.
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/



Re: Trouble w/ LWP during mod_perl install

2002-03-17 Thread Ged Haywood

Hi there,

On Sun, 17 Mar 2002, John Kolvereid wrote:

> I got your name from the mod_perl mailing list,

Please post to the list, not to an individual member, unless you are
replying to a message from that member on the list - in which case you
should normally cc the list.  (You will find more help about this kind
of thing in http://perl.apache.org/email-etiquette and there are some
links in there to other documents you should also read... :)

> I am trying to install mod_perl-1.26 on Linux RedHat 6.2 w/
> Apache-1.3.22.  I am using the following build file:
>   perl Makefile.PL \
>   APACHE_PREFIX=/usr/local/apache \
>   APACHE_SRC=/home/ssl/apache_1.3.22 \
>   DO_HTTPD=1 \
>   USE_APACI=1 \
>   EVERYTHING=1
> 
> I get a lot of messages,

That's normal.  You haven't said where you have put the mod_perl
source, can I assume that it is "/home/ssl/mod_perl-1.26"?

> then I run 'make', and 'make test'.
> Problem is that make test complains that it cannot find LWP.

It isn't absolutely necessary but it's a good idea to get 'make test'
to run successfully, which needs LWP.

> I downloaded and installed (I think) libwww-perl-5.64.

How did you do that?  It's probably easiest to use CPAN.pm:

perl -MCPAN -eshell

> Unfortunately, it didn't seem to resolve my LWP problem.  When I do
> a 'make install' nothing seems to change.

H.  You aren't helping me very much there.  Are you following all
the instructions carefully?  What happens?

'make install' doesn't rely on LWP.  You probably need to be root to
'make install'.  Do you think you have successfully compiled a binary
after the 'make' step?  It will be called 'httpd'.  Check the date and
time of the binary to make sure it's the one you've built and not just
one that was lying around in there from an old installation.  Can you
run it with 'httpd -l' and post the result?

73,
Ged.