Trouble installing Apache::Request

Hello all:

This is my first post to this list, so forgive me if this is somewhat OT.
I’m trying to install the prerequisites for rt, and all was going well until
I got to Apache::Request. I’m running on a linux redhat 8.0 system, with
Apache 1.3.27 and mod_perl 1.27 (compiled static into apache). I had to
rebuild apache and mod_perl from sources. I’m using the interactive CPAN
shell to do the install. When I try ‘install Apache::Request’, the make
command succeeds, but ‘make test’ fails all tests. It looks like httpd is
being started OK. It is located in usr/local/apache. In response to the
questions make test asks, I enter the usr/local/apache path. All other
questions I just take the defaults.

I’m not sure if there is a real problem here. It could be that I don’t have
apache, etc, set up correctly, though I did start apache using the apachectl
(?) command, and it successfully started and showed the default home page.
I’m an apache, mod_perl, linux, rt newbie, though I do know perl. Any
suggestions?

Thanks,

Rad

Alle,

I'm running RH7.3, mysql/4.0.12-0, modperl/1.26. I've installed perl 5.8 in

/usr/local, alongside the default 5.6 that comes with RH. I have gotten all
modules to install in /usr/local/lib/perl5 running:

/usr/local/bin/perl
./sbin/rt-test-dependencies --with-mysql --with-modperl1 --install

EXCEPT Apache::Request. I get the following error:

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
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

When I check the error log, I find that it cannot find Apache/Test.pm

because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

[root@hilo cwfox]# cat .cpan/build/libapreq-1.2/t/logs/error_log
[Tue Aug 5 13:30:44 2003] [info] Created shared memory segment #3637259
[Tue Aug 5 13:30:44 2003] [info] allocated semaphore #1540120
[Tue Aug 5 13:30:45 2003] [info] Created shared memory segment #3702795
[Tue Aug 5 13:30:45 2003] [info] allocated semaphore #1572888
[Tue Aug 5 13:30:45 2003] [info] created shared memory segment #3735564
[Tue Aug 5 13:30:46 2003] [error] Can’t locate Apache/Test.pm in @INC (@INC
contains: /home/cwfox/.cpan/build/libapreq-1.2/lib
/home/cwfox/.cpan/build/libapreq-1.2/blib/lib
/home/cwfox/.cpan/build/libapreq-1.2/blib/arch
/home/cwfox/.cpan/build/libapreq-1.2/t/response
/home/cwfox/.cpan/build/libapreq-1.2/t /usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl . /home/cwfox/.cpan/build/libapreq-1.2/t/
/home/cwfox/.cpan/build/libapreq-1.2/t/lib/perl) at
/home/cwfox/.cpan/build/libapreq-1.2/t/response/TestApReq/big_input.pm line
6.
BEGIN failed–compilation aborted at
/home/cwfox/.cpan/build/libapreq-1.2/t/response/TestApReq/big_input.pm line
6.
Compilation failed in require at (eval 4) line 3.

I had no problems like this when I installed/updated the modules. Anyone

had experience with this before?

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026

Hi,

I had the same problem today, although I don’t have the answer as of yet I’m
working with the same issue. However I force installed Apache::Request and
the problem then shows up in the httpd.conf file. I don’t recommend doing
the force.-----Original Message-----
From: Camron W. Fox [mailto:cwfox@fujitsu.com]
Sent: Tuesday, August 05, 2003 4:45 PM
To: Rt-Users@Lists. Fsck. Com
Subject: [rt-users] Trouble installing Apache::Request

Alle,

I'm running RH7.3, mysql/4.0.12-0, modperl/1.26. I've installed perl

5.8 in
/usr/local, alongside the default 5.6 that comes with RH. I have gotten all
modules to install in /usr/local/lib/perl5 running:

/usr/local/bin/perl
./sbin/rt-test-dependencies --with-mysql --with-modperl1 --install

EXCEPT Apache::Request. I get the following error:

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
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

When I check the error log, I find that it cannot find

Apache/Test.pm
because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

[root@hilo cwfox]# cat .cpan/build/libapreq-1.2/t/logs/error_log
[Tue Aug 5 13:30:44 2003] [info] Created shared memory segment #3637259
[Tue Aug 5 13:30:44 2003] [info] allocated semaphore #1540120
[Tue Aug 5 13:30:45 2003] [info] Created shared memory segment #3702795
[Tue Aug 5 13:30:45 2003] [info] allocated semaphore #1572888
[Tue Aug 5 13:30:45 2003] [info] created shared memory segment #3735564
[Tue Aug 5 13:30:46 2003] [error] Can’t locate Apache/Test.pm in @INC (@INC
contains: /home/cwfox/.cpan/build/libapreq-1.2/lib
/home/cwfox/.cpan/build/libapreq-1.2/blib/lib
/home/cwfox/.cpan/build/libapreq-1.2/blib/arch
/home/cwfox/.cpan/build/libapreq-1.2/t/response
/home/cwfox/.cpan/build/libapreq-1.2/t /usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl . /home/cwfox/.cpan/build/libapreq-1.2/t/
/home/cwfox/.cpan/build/libapreq-1.2/t/lib/perl) at
/home/cwfox/.cpan/build/libapreq-1.2/t/response/TestApReq/big_input.pm line
6.
BEGIN failed–compilation aborted at
/home/cwfox/.cpan/build/libapreq-1.2/t/response/TestApReq/big_input.pm line
6.
Compilation failed in require at (eval 4) line 3.

I had no problems like this when I installed/updated the modules.

Anyone
had experience with this before?

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Camron W. Fox wrote:

When I check the error log, I find that it cannot find Apache/Test.pm
because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

Have you rebuilt mod_perl against 5.8.0?
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Phil Homewood
Sent: Saturday, August 09, 2003 23:55
To: Rt-Users@Lists. Fsck. Com
Subject: Re: [rt-users] Trouble installing Apache::Request

Camron W. Fox wrote:

When I check the error log, I find that it cannot find 

Apache/Test.pm

because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

Have you rebuilt mod_perl against 5.8.0?

Phil,

Yes, we have.

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026

Camron W. Fox wrote:

When I check the error log, I find that it cannot find Apache/Test.pm
because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

ok. did you previously configure libapreq under 5.6, and somehow
it’s retaining that configuration?
Can you blow away the ~/.cpan/build/libapreq-1.2 dir and retry
the install from CPAN?

Also check if there is any perl 5.6 binary calling itself “perl”
anywhere in the path, perhaps… I’m wondering if the libapreq
build is somehow picking that over the 5.8 binary…
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Phil Homewood
Sent: Sunday, August 10, 2003 17:57
To: Camron W. Fox
Cc: Rt-Users@Lists. Fsck. Com
Subject: Re: [rt-users] Trouble installing Apache::Request

Camron W. Fox wrote:

When I check the error log, I find that it cannot find

Apache/Test.pm

because it’s looking in the 5.6.1 locs in /usr/lib/perl5 vice the newly
installed 5.8.0 locs in /usr/local/lib/perl5:

ok. did you previously configure libapreq under 5.6, and somehow
it’s retaining that configuration?
Can you blow away the ~/.cpan/build/libapreq-1.2 dir and retry
the install from CPAN?

Also check if there is any perl 5.6 binary calling itself “perl”
anywhere in the path, perhaps… I’m wondering if the libapreq
build is somehow picking that over the 5.8 binary…

Phil,

Yes, libapreq was previously built under 5.6.1 for our RT2 installation.

But that was done under /root/.cpan as root with /usr/bin/perl (5.6.1) and
all the new stuff has been done under ~cwfox/.cpan using sudo with
/usr/local/bin/perl (5.8.0). All the other modules have installed with no
problems.

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026

Camron W. Fox wrote:

Yes, libapreq was previously built under 5.6.1 for our RT2 installation.
But that was done under /root/.cpan as root with /usr/bin/perl (5.6.1) and
all the new stuff has been done under ~cwfox/.cpan using sudo with
/usr/local/bin/perl (5.8.0). All the other modules have installed with no
problems.

ok. The basic problem we’re having here seems to be: Somehow libapreq
is picking up 5.6 instead of 5.8. Correct?

What does the Makefile in ~/.cpan/build/libapreq-1.2 look like?
Does it reference 5.8 or 5.6? In particular, what does it say
PERL_LIB, PERL_ARCHLIB, PERL and FULLPERL are?

Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Phil Homewood
Sent: Monday, August 11, 2003 13:10
To: Rt-Users@Lists. Fsck. Com
Subject: Re: [rt-users] Trouble installing Apache::Request

Camron W. Fox wrote:

Yes, libapreq was previously built under 5.6.1 for our RT2

installation.

But that was done under /root/.cpan as root with /usr/bin/perl
(5.6.1) and
all the new stuff has been done under ~cwfox/.cpan using sudo with
/usr/local/bin/perl (5.8.0). All the other modules have
installed with no
problems.

ok. The basic problem we’re having here seems to be: Somehow libapreq
is picking up 5.6 instead of 5.8. Correct?

Yes.

What does the Makefile in ~/.cpan/build/libapreq-1.2 look like?
Does it reference 5.8 or 5.6? In particular, what does it say
PERL_LIB, PERL_ARCHLIB, PERL and FULLPERL are?

[root@hilo libapreq-1.2]# egrep ‘(^PERL_LIB|^PERL_ARCHLIB|^PERL|^FULLPERL)’
Makefile
PERLPREFIX = /usr/local
PERL_LIB = /usr/local/lib/perl5/5.8.0
PERL_ARCHLIB = /usr/local/lib/perl5/5.8.0/i686-linux
PERLMAINCC = $(CC)
PERL_INC = /usr/local/lib/perl5/5.8.0/i686-linux/CORE
PERL = /usr/local/bin/perl
FULLPERL = /usr/local/bin/perl
PERLRUN = $(PERL)
FULLPERLRUN = $(FULLPERL)
PERLRUNINST = $(PERLRUN) “-I$(INST_ARCHLIB)” “-I$(INST_LIB)”
FULLPERLRUNINST = $(FULLPERLRUN) “-I$(INST_ARCHLIB)” “-I$(INST_LIB)”
PERL_CORE = 0
PERL_ARCHIVE =
PERL_ARCHIVE_AFTER =
PERL_MALLOC_DEF
= -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl
_realloc -Dcalloc=Perl_calloc
PERLTYPE =
FULLPERL = /usr/local/bin/perl
[root@hilo libapreq-1.2]#

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.

Apache::test is required for libapreq…did you try to re-build ap::test
after your upgraded to 5.8.1. I would try to re-build apache::test, then
re-build libapreq, and see if that works.From: Camron W. Fox [mailto:cwfox@fujitsu.com]
Sent: Monday, August 11, 2003 4:41 PM
To: Rt-Users@Lists. Fsck. Com
Subject: RE: [rt-users] Trouble installing Apache::Request

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Phil Homewood
Sent: Monday, August 11, 2003 13:10
To: Rt-Users@Lists. Fsck. Com
Subject: Re: [rt-users] Trouble installing Apache::Request

Camron W. Fox wrote:

Yes, libapreq was previously built under 5.6.1 for our RT2

installation.

But that was done under /root/.cpan as root with /usr/bin/perl
(5.6.1) and
all the new stuff has been done under ~cwfox/.cpan using sudo with
/usr/local/bin/perl (5.8.0). All the other modules have
installed with no
problems.

ok. The basic problem we’re having here seems to be: Somehow libapreq
is picking up 5.6 instead of 5.8. Correct?

Yes.

What does the Makefile in ~/.cpan/build/libapreq-1.2 look like?
Does it reference 5.8 or 5.6? In particular, what does it say
PERL_LIB, PERL_ARCHLIB, PERL and FULLPERL are?

[root@hilo libapreq-1.2]# egrep ‘(^PERL_LIB|^PERL_ARCHLIB|^PERL|^FULLPERL)’
Makefile
PERLPREFIX = /usr/local
PERL_LIB = /usr/local/lib/perl5/5.8.0
PERL_ARCHLIB = /usr/local/lib/perl5/5.8.0/i686-linux
PERLMAINCC = $(CC)
PERL_INC = /usr/local/lib/perl5/5.8.0/i686-linux/CORE
PERL = /usr/local/bin/perl
FULLPERL = /usr/local/bin/perl
PERLRUN = $(PERL)
FULLPERLRUN = $(FULLPERL)
PERLRUNINST = $(PERLRUN) “-I$(INST_ARCHLIB)” “-I$(INST_LIB)”
FULLPERLRUNINST = $(FULLPERLRUN) “-I$(INST_ARCHLIB)” “-I$(INST_LIB)”
PERL_CORE = 0
PERL_ARCHIVE =
PERL_ARCHIVE_AFTER =
PERL_MALLOC_DEF
= -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl
_realloc -Dcalloc=Perl_calloc
PERLTYPE =
FULLPERL = /usr/local/bin/perl
[root@hilo libapreq-1.2]#

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm