You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Jim Morrison [Mailing-Lists]" <ju...@mediaisotope.com> on 2003/07/22 17:28:08 UTC

mod_perl installation problem...

Hello,

I've just come a cropper trying to reinstall mod_perl, and I'm a little
desparate! Any help would be greatly appreciated.

(I've 'a' mod_perl/apache running fine, but I can't get Apache::Cookie
running along with)

I'm trying to install:
	apache_1.3.28
    + mod_perl-1.28

My config for mod_perl is :
	APACHE_SRC=../apache_1.3.28/src \
	DO_HTTPD=1 EVERYTHING=1 \
	DYNAMIC=1 USE_APACI=1

Though I've tried pretty much every variation on that with the same
result.. 

During 'make test' I keep getting:

modules/request.......NOK 1Test header seen more than once!
modules/request.......NOK 2Test header seen more than once!
modules/request.......FAILED tests 1-10
        Failed 10/10 tests, 0.00% okay
<snip>
Failed 1/34 test scripts, 97.06% okay. 10/318 subtests failed, 96.86%
okay.
make: *** [run_tests] Error 29

(also skips cookie, module and api)

.. Thing is I've got a mod_perl running just fine - What I'm trying to
do is install Apache::Cookie, but it won't because libapreq (1.2) is
complaining...

This is really driving me up the wall so any help would be fantastic.

Thanks,
Jimbo


RE: mod_perl installation problem...

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 23 Jul 2003, Jim Morrison [Mailing-Lists] wrote:
[ .. ]
> Make appeared to be successful yes (afaik)... I did wonder
> about the permissions thing but I tried as root to no avail..

Some people have had problems running the tests as root ... You
might want to try unpacking, building, and testing as some user
other than root, and only su to root when installing.

-- 
best regards,
randy

RE: mod_perl installation problem...

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 23 Jul 2003, Jim Morrison [Mailing-Lists] wrote:
[ .. ]
> Make appeared to be successful yes (afaik)... I did wonder
> about the permissions thing but I tried as root to no avail..

Some people have had problems running the tests as root ... You
might want to try unpacking, building, and testing as some user
other than root, and only su to root when installing.

-- 
best regards,
randy

RE: mod_perl installation problem...

Posted by "Jim Morrison [Mailing-Lists]" <ju...@mediaisotope.com>.
> 
> Was a 'make' of libapreq successful, before the 'make test'? 
> And also, does the user you're running the tests as have the 
> proper permissions to be running tests within /usr/src/libapreq-1.2/?
> 
> 

Make appeared to be successful yes (afaik)... I did wonder about the
permissions thing but I tried as root to no avail..

Kidnest,
Jim


RE: mod_perl installation problem...

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
[ adding in apreq-dev ]

On Wed, 23 Jul 2003, Jim Morrison [Mailing-Lists] wrote:

> Libapreq is complaining too.. That's how this all started, I
> couldn't install Apache::Cookie.
>
> Ok.. I've had a bit of a clean up, and I can now get
> Apache&mod_perl compiling and running just fine.. __But__ I
> still can't for the life of me get Apache::Request and
> Apache::Cookie to install..  Going slowly insane.
[ ... ]
> And here is t/logs/error_log
>
> [Wed Jul 23 09:42:12 2003] [info] created shared memory segment #950274
> [Wed Jul 23 09:42:13 2003] [error] Can't load
> '/usr/src/libapreq-1.2/blib/arch/auto/Apache/Cookie/Cookie.so' for
> module Apache::Cookie: libapreq.so.1: cannot open shared object file: No
> such file or directory at /usr/local/lib
> /perl5/5.8.0/i686-linux/DynaLoader.pm line 229.
>  at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/mod_perl.pm line 14
[ ... ]

Was a 'make' of libapreq successful, before the 'make test'? And
also, does the user you're running the tests as have the proper
permissions to be running tests within /usr/src/libapreq-1.2/?

-- 
best regards,
randy

RE: mod_perl installation problem...

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
[ adding in apreq-dev ]

On Wed, 23 Jul 2003, Jim Morrison [Mailing-Lists] wrote:

> Libapreq is complaining too.. That's how this all started, I
> couldn't install Apache::Cookie.
>
> Ok.. I've had a bit of a clean up, and I can now get
> Apache&mod_perl compiling and running just fine.. __But__ I
> still can't for the life of me get Apache::Request and
> Apache::Cookie to install..  Going slowly insane.
[ ... ]
> And here is t/logs/error_log
>
> [Wed Jul 23 09:42:12 2003] [info] created shared memory segment #950274
> [Wed Jul 23 09:42:13 2003] [error] Can't load
> '/usr/src/libapreq-1.2/blib/arch/auto/Apache/Cookie/Cookie.so' for
> module Apache::Cookie: libapreq.so.1: cannot open shared object file: No
> such file or directory at /usr/local/lib
> /perl5/5.8.0/i686-linux/DynaLoader.pm line 229.
>  at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/mod_perl.pm line 14
[ ... ]

Was a 'make' of libapreq successful, before the 'make test'? And
also, does the user you're running the tests as have the proper
permissions to be running tests within /usr/src/libapreq-1.2/?

-- 
best regards,
randy

RE: mod_perl installation problem...

Posted by "Jim Morrison [Mailing-Lists]" <ju...@mediaisotope.com>.
Never got to the bottom of this, but have reverted to mod_perl-1.27 and
libapreq-1.1 and all is now working dandy.

Cheers for the help.

Jim



> -----Original Message-----
> From: Jim Morrison [Mailing-Lists] [mailto:junk@mediaisotope.com] 
> Sent: 23 July 2003 09:43
> To: modperl@perl.apache.org
> Cc: 'Randy Kobes'
> Subject: RE: mod_perl installation problem... 
> 
> 
> Thanks for getting back Randy,
> 
> Libapreq is complaining too.. That's how this all started, I 
> couldn't install Apache::Cookie.
> 
> Ok.. I've had a bit of a clean up, and I can now get 
> Apache&mod_perl compiling and running just fine.. __But__ I 
> still can't for the life of me get Apache::Request and 
> Apache::Cookie to install..  Going slowly insane. 
> 
> Any help really appreciated.. Hope this hasn't become too OT.
> 
> Cheers,
> Jimbo
> 


RE: mod_perl installation problem...

Posted by "Jim Morrison [Mailing-Lists]" <ju...@mediaisotope.com>.
Thanks for getting back Randy,

Libapreq is complaining too.. That's how this all started, I couldn't
install Apache::Cookie.

Ok.. I've had a bit of a clean up, and I can now get Apache&mod_perl
compiling and running just fine.. __But__ I still can't for the life of
me get Apache::Request and Apache::Cookie to install..  Going slowly
insane. 

Any help really appreciated.. Hope this hasn't become too OT.

Cheers,
Jimbo

PS: Here is the end of the make test from libapreq:
=================================================
/usr/local/apache/bin/httpd -X -d /usr/src/libapreq-1.2/t -f
/usr/src/libapreq-1.2/t/conf/httpd.conf -DAPACHE1
using Apache/1.3.28

waiting for server to start: .
waiting for server to start: ok (waited 0 secs)
server localhost.localdomain:8529 started
apreq/big_input....NOK 1# Failed test 1 in apreq/big_input.t at line 40
apreq/big_input....NOK 2# Failed test 2 in apreq/big_input.t at line 40
fail #2
apreq/big_input....NOK 3# Failed test 3 in apreq/big_input.t at line 40
fail #3
apreq/big_input....NOK 4# Failed test 4 in apreq/big_input.t at line 40
fail #4
apreq/big_input....NOK 5# Failed test 5 in apreq/big_input.t at line 40
fail #5
apreq/big_input....NOK 6# Failed test 6 in apreq/big_input.t at line 40
fail #6
apreq/big_input....NOK 7# Failed test 7 in apreq/big_input.t at line 40
fail #7
apreq/big_input....NOK 8# Failed test 8 in apreq/big_input.t at line 40
fail #8
apreq/big_input....NOK 9# Failed test 9 in apreq/big_input.t at line 40
fail #9
apreq/big_input....NOK 10# Failed test 10 in apreq/big_input.t at line
63
apreq/big_input....NOK 11# Failed test 11 in apreq/big_input.t at line
63 fail #2
apreq/big_input....NOK 12# Failed test 12 in apreq/big_input.t at line
63 fail #3
apreq/big_input....NOK 13# Failed test 13 in apreq/big_input.t at line
63 fail #4
apreq/big_input....NOK 14# Failed test 14 in apreq/big_input.t at line
63 fail #5
apreq/big_input....NOK 15# Failed test 15 in apreq/big_input.t at line
63 fail #6
apreq/big_input....NOK 16# Failed test 16 in apreq/big_input.t at line
63 fail #7
apreq/big_input....NOK 17# Failed test 17 in apreq/big_input.t at line
63 fail #8
apreq/big_input....NOK 18# Failed test 18 in apreq/big_input.t at line
63 fail #9
apreq/big_input....NOK 19# Failed test 19 in apreq/big_input.t at line
63 fail #10
apreq/big_input....NOK 20# Failed test 20 in apreq/big_input.t at line
63 fail #11
apreq/big_input....NOK 21# Failed test 21 in apreq/big_input.t at line
63 fail #12
apreq/big_input....FAILED tests 1-21
        Failed 21/21 tests, 0.00% okay
apreq/cookie.......NOK 1# Failed test 1 in apreq/cookie.t at line 20
apreq/cookie.......FAILED test 1
        Failed 1/1 tests, 0.00% okay
apreq/inherit......NOK 1# Failed test 1 in apreq/inherit.t at line 11
apreq/inherit......FAILED test 1
        Failed 1/1 tests, 0.00% okay
apreq/request......NOK 1# Failed test 1 in apreq/request.t at line 18
apreq/request......NOK 2# Failed test 2 in apreq/request.t at line 26
apreq/request......FAILED tests 1-2
        Failed 2/2 tests, 0.00% okay
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------
-------
apreq/big_input.t               21   21 100.00%  1-21
apreq/cookie.t                   1    1 100.00%  1
apreq/inherit.t                  1    1 100.00%  1
apreq/request.t                  2    2 100.00%  1-2
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1
=================================================



And here is t/logs/error_log



[Wed Jul 23 09:42:12 2003] [info] created shared memory segment #950274
[Wed Jul 23 09:42:13 2003] [error] Can't load
'/usr/src/libapreq-1.2/blib/arch/auto/Apache/Cookie/Cookie.so' for
module Apache::Cookie: libapreq.so.1: cannot open shared object file: No
such file or directory at /usr/local/lib
/perl5/5.8.0/i686-linux/DynaLoader.pm line 229.
 at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/mod_perl.pm line 14
Compilation failed in require at
/usr/src/libapreq-1.2/t/response/TestApReq/big_input.pm line 9.
BEGIN failed--compilation aborted at
/usr/src/libapreq-1.2/t/response/TestApReq/big_input.pm line 9.
Compilation failed in require at (eval 10) line 3.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:13 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:14 2003] [error] Undefined subroutine
&TestApReq::big_input::handler called.

[Wed Jul 23 09:42:14 2003] [error] Can't load
'/usr/src/libapreq-1.2/blib/arch/auto/Apache/Request/Request.so' for
module Apache::Request: libapreq.so.1: cannot open shared object file:
No such file or directory at /usr/local/
lib/perl5/5.8.0/i686-linux/DynaLoader.pm line 229.
 at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/mod_perl.pm line 14
Compilation failed in require at
/usr/src/libapreq-1.2/t/response/TestApReq/cookie.pm line 10.
BEGIN failed--compilation aborted at
/usr/src/libapreq-1.2/t/response/TestApReq/cookie.pm line 10.
Compilation failed in require at (eval 22) line 3.

[Wed Jul 23 09:42:14 2003] [error] Undefined subroutine
&TestApReq::cookie::handler called.

[Wed Jul 23 09:42:14 2003] [error] Can't locate object method "new" via
package "Apache::Request" at
/usr/src/libapreq-1.2/t/response/TestApReq/inherit.pm line 9.

[Wed Jul 23 09:42:14 2003] [error] Can't locate object method "new" via
package "Apache::Request" at
/usr/src/libapreq-1.2/t/response/TestApReq/request.pm line 14.

[Wed Jul 23 09:42:14 2003] [error] Can't locate object method "new" via
package "Apache::Request" at
/usr/src/libapreq-1.2/t/response/TestApReq/request.pm line 14.



===========================================








> -----Original Message-----
> From: Randy Kobes [mailto:randy@theoryx5.uwinnipeg.ca] 
> Sent: 22 July 2003 16:50
> To: Jim Morrison [Mailing-Lists]
> Cc: modperl@perl.apache.org
> Subject: Re: mod_perl installation problem... 
> 
> 
> On Tue, 22 Jul 2003, Jim Morrison [Mailing-Lists] wrote:
> 
> > Hello,
> >
> > I've just come a cropper trying to reinstall mod_perl, and I'm a 
> > little desparate! Any help would be greatly appreciated.
> >
> > (I've 'a' mod_perl/apache running fine, but I can't get 
> Apache::Cookie 
> > running along with)
> >
> > I'm trying to install:
> > 	apache_1.3.28
> >     + mod_perl-1.28
> >
> > My config for mod_perl is :
> > 	APACHE_SRC=../apache_1.3.28/src \
> > 	DO_HTTPD=1 EVERYTHING=1 \
> > 	DYNAMIC=1 USE_APACI=1
> >
> > Though I've tried pretty much every variation on that with the same 
> > result..
> >
> > During 'make test' I keep getting:
> >
> > modules/request.......NOK 1Test header seen more than once! 
> > modules/request.......NOK 2Test header seen more than once! 
> > modules/request.......FAILED tests 1-10
> >         Failed 10/10 tests, 0.00% okay
> > <snip>
> > Failed 1/34 test scripts, 97.06% okay. 10/318 subtests 
> failed, 96.86% 
> > okay.
> > make: *** [run_tests] Error 29
> >
> > (also skips cookie, module and api)
> >
> > .. Thing is I've got a mod_perl running just fine - What 
> I'm trying to 
> > do is install Apache::Cookie, but it won't because libapreq 
> (1.2) is 
> > complaining...
> 
> It's strange that it runs modules/request but skips 
> modules/cookie, as both should be run by a successful install 
> of libapreq (which supplies Apache::Request and 
> Apache::Cookie). Might a partial install of libapreq been 
> made? It might be worth first tracking down the problems you 
> had with libapreq, to see if resolving those would help with 
> these mod_perl problems.
> 
> -- 
> best regards,
> randy kobes
> 


Re: mod_perl installation problem...

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 22 Jul 2003, Jim Morrison [Mailing-Lists] wrote:

> Hello,
>
> I've just come a cropper trying to reinstall mod_perl, and I'm a little
> desparate! Any help would be greatly appreciated.
>
> (I've 'a' mod_perl/apache running fine, but I can't get Apache::Cookie
> running along with)
>
> I'm trying to install:
> 	apache_1.3.28
>     + mod_perl-1.28
>
> My config for mod_perl is :
> 	APACHE_SRC=../apache_1.3.28/src \
> 	DO_HTTPD=1 EVERYTHING=1 \
> 	DYNAMIC=1 USE_APACI=1
>
> Though I've tried pretty much every variation on that with the same
> result..
>
> During 'make test' I keep getting:
>
> modules/request.......NOK 1Test header seen more than once!
> modules/request.......NOK 2Test header seen more than once!
> modules/request.......FAILED tests 1-10
>         Failed 10/10 tests, 0.00% okay
> <snip>
> Failed 1/34 test scripts, 97.06% okay. 10/318 subtests failed, 96.86%
> okay.
> make: *** [run_tests] Error 29
>
> (also skips cookie, module and api)
>
> .. Thing is I've got a mod_perl running just fine - What I'm trying to
> do is install Apache::Cookie, but it won't because libapreq (1.2) is
> complaining...

It's strange that it runs modules/request but skips
modules/cookie, as both should be run by a successful install of
libapreq (which supplies Apache::Request and Apache::Cookie).
Might a partial install of libapreq been made? It might be worth
first tracking down the problems you had with libapreq, to see if
resolving those would help with these mod_perl problems.

-- 
best regards,
randy kobes

RE: mod_perl installation problem... (A little more info)

Posted by "Jim Morrison [Mailing-Lists]" <ju...@mediaisotope.com>.
Further to the below.. Just found my error_log which might be of some
use..

The bit that glares at me is:

[Tue Jul 22 16:38:47 2003] [error] Can't locate object method "new" via
package "Apache::Request" at /usr/src/mod_perl-1.28/t/net/perl/api.pl
line 11, <fh00001b> line 1.

Which is annoying because I can't install Apache::Request without it
making similar complaints?!

==============

Subroutine fileparse_set_fstype redefined at
/usr/local/lib/perl5/5.8.0/File/Basename.pm line 154.
Subroutine fileparse redefined at
/usr/local/lib/perl5/5.8.0/File/Basename.pm line 168.
Subroutine basename redefined at
/usr/local/lib/perl5/5.8.0/File/Basename.pm line 235.
Subroutine dirname redefined at
/usr/local/lib/perl5/5.8.0/File/Basename.pm line 248.
Constant subroutine CGI::XHTML_DTD redefined at
/usr/local/lib/perl5/5.8.0/constant.pm line 108.
[Tue Jul 22 16:38:42 2003] [warn] [notice] child_init for process 31133,
report any problems to [no address given]

[Tue Jul 22 16:38:45 2003] [warn] [client 127.0.0.1] log __ANON__ OK
[Tue Jul 22 16:38:46 2003] [error] [client 127.0.0.1] File does not
exist: /usr/src/mod_perl-1.28/t/docs/STAGE/u1/test.html
[Tue Jul 22 16:38:46 2003] [error] [client 127.0.0.1] File does not
exist: /usr/src/mod_perl-1.28/t/docs/STAGE/u1/nochance.html
[Tue Jul 22 16:38:46 2003] [error] [client 127.0.0.1] File does not
exist: /usr/src/mod_perl-1.28/t/docs/nochance.html
[Tue Jul 22 16:38:47 2003] [error] Can't locate object method "new" via
package "Apache::Request" at /usr/src/mod_perl-1.28/t/net/perl/api.pl
line 11, <fh00001b> line 1.

*** The following [error] is expected, no cause for alarm ***
[Tue Jul 22 16:38:48 2003] [error] Missing right curly or square bracket
at /usr/src/mod_perl-1.28/t/docs/badsyntax.pl line 9, at end of line
syntax error at /usr/src/mod_perl-1.28/t/docs/badsyntax.pl line 9, at
EOF
Compilation failed in require at
/usr/src/mod_perl-1.28/t//docs/startup.pl line 249, <fh00001b> line 1.

*** The following [error] is expected, no cause for alarm ***
[Tue Jul 22 16:38:48 2003] [error] Apache::Death at /dev/null line 0

*** The following [error] is expected, no cause for alarm ***
[Tue Jul 22 16:38:48 2003] [error] Missing right curly or square bracket
at /usr/src/mod_perl-1.28/t/docs/badsyntax.pl line 9, at end of line
syntax error at /usr/src/mod_perl-1.28/t/docs/badsyntax.pl line 9, at
EOF
Compilation failed in require at
/usr/src/mod_perl-1.28/t//docs/startup.pl line 249, <fh00001b> line 1.

*** The following [error] is expected, no cause for alarm ***
[Tue Jul 22 16:38:48 2003] [error] Apache::Death at /dev/null line 0

[notice] child process 31133 terminating
[notice] push'd PerlChildExitHandler called, pid=31133
[notice] push'd PerlChildExitHandler called, pid=31133
[notice] END block called for startup.pl
[notice] Destruction->DESTROY called for $global_object

==============

> Hello,
> 
> I've just come a cropper trying to reinstall mod_perl, and 
> I'm a little desparate! Any help would be greatly appreciated.
> 
> (I've 'a' mod_perl/apache running fine, but I can't get 
> Apache::Cookie running along with)
> 
> I'm trying to install:
> 	apache_1.3.28
>     + mod_perl-1.28
> 
> My config for mod_perl is :
> 	APACHE_SRC=../apache_1.3.28/src \
> 	DO_HTTPD=1 EVERYTHING=1 \
> 	DYNAMIC=1 USE_APACI=1
> 
> Though I've tried pretty much every variation on that with 
> the same result.. 
> 
> During 'make test' I keep getting:
> 
> modules/request.......NOK 1Test header seen more than once! 
> modules/request.......NOK 2Test header seen more than once! 
> modules/request.......FAILED tests 1-10
>         Failed 10/10 tests, 0.00% okay
> <snip>
> Failed 1/34 test scripts, 97.06% okay. 10/318 subtests 
> failed, 96.86% okay.
> make: *** [run_tests] Error 29
> 
> (also skips cookie, module and api)
> 
> .. Thing is I've got a mod_perl running just fine - What I'm 
> trying to do is install Apache::Cookie, but it won't because 
> libapreq (1.2) is complaining...
> 
> This is really driving me up the wall so any help would be fantastic.
> 
> Thanks,
> Jimbo
>