Trying to install RT-2.0.13 w/ FastCGI

And I am encountering a problem in making sure the testdep script is happy.
The idea is to bring RT online under FastCGI and not mod_perl, so I am
perplexed to see one of the dependencies seemingly looking for mod_perl.pm.

Is there a way to get around this dependency, or do I still have to install
mod_perl to satisfy the dependancy and just not use it? (I looked in the
RT/FM Installation Guide, but there was no answer there)

Thanks - Peter

[…]
Running install for module Apache::Cookie
Running make for J/JI/JIMW/libapreq-1.0.tar.gz

Scanning cache /tmp/.cpan/build for sizes
blocksize = 256
x libapreq-1.0/
x libapreq-1.0/.cvsignore, 102 bytes, 1 tape blocks
x libapreq-1.0/CREDITS, 994 bytes, 2 tape blocks
x libapreq-1.0/Changes, 4655 bytes, 10 tape blocks
x libapreq-1.0/INSTALL, 416 bytes, 1 tape blocks
x libapreq-1.0/LICENSE, 2826 bytes, 6 tape blocks
x libapreq-1.0/MANIFEST, 771 bytes, 2 tape blocks
x libapreq-1.0/Makefile.PL, 2073 bytes, 5 tape blocks
x libapreq-1.0/Makefile.am, 65 bytes, 1 tape blocks
x libapreq-1.0/README, 2027 bytes, 4 tape blocks
x libapreq-1.0/ToDo, 653 bytes, 2 tape blocks
x libapreq-1.0/acconfig.h, 30 bytes, 1 tape blocks
x libapreq-1.0/acinclude.m4, 270 bytes, 1 tape blocks
x libapreq-1.0/aclocal.m4, 18293 bytes, 36 tape blocks
x libapreq-1.0/config.guess, 31326 bytes, 62 tape blocks
x libapreq-1.0/config.sub, 24212 bytes, 48 tape blocks
x libapreq-1.0/configure.in, 435 bytes, 1 tape blocks
x libapreq-1.0/install-sh, 5598 bytes, 11 tape blocks
x libapreq-1.0/libapreq.pod, 8920 bytes, 18 tape blocks
x libapreq-1.0/libtool, 117539 bytes, 230 tape blocks
x libapreq-1.0/ltconfig, 94197 bytes, 184 tape blocks
x libapreq-1.0/ltmain.sh, 109395 bytes, 214 tape blocks
x libapreq-1.0/mkinstalldirs, 723 bytes, 2 tape blocks
x libapreq-1.0/typemap, 870 bytes, 2 tape blocks
x libapreq-1.0/Cookie/
x libapreq-1.0/Cookie/.cvsignore, 28 bytes, 1 tape blocks
x libapreq-1.0/Cookie/Cookie.pm, 2991 bytes, 6 tape blocks
x libapreq-1.0/Cookie/Cookie.xs, 5052 bytes, 10 tape blocks
x libapreq-1.0/Cookie/Makefile.PL, 1206 bytes, 3 tape blocks
x libapreq-1.0/Request/
x libapreq-1.0/Request/.cvsignore, 28 bytes, 1 tape blocks
x libapreq-1.0/Request/Makefile.PL, 1206 bytes, 3 tape blocks
x libapreq-1.0/Request/Request.pm, 8826 bytes, 18 tape blocks
x libapreq-1.0/Request/Request.xs, 11638 bytes, 23 tape blocks
x libapreq-1.0/c/
x libapreq-1.0/c/.cvsignore, 77 bytes, 1 tape blocks
x libapreq-1.0/c/Makefile.PL, 2087 bytes, 5 tape blocks
x libapreq-1.0/c/Makefile.am, 268 bytes, 1 tape blocks
x libapreq-1.0/c/Makefile.noperl, 740 bytes, 2 tape blocks
x libapreq-1.0/c/apache_cookie.c, 7363 bytes, 15 tape blocks
x libapreq-1.0/c/apache_cookie.h, 1384 bytes, 3 tape blocks
x libapreq-1.0/c/apache_multipart_buffer.c, 10005 bytes, 20 tape blocks
x libapreq-1.0/c/apache_multipart_buffer.h, 928 bytes, 2 tape blocks
x libapreq-1.0/c/apache_request.c, 15112 bytes, 30 tape blocks
x libapreq-1.0/c/apache_request.h, 3406 bytes, 7 tape blocks
x libapreq-1.0/c/libapreq_config.h.in, 176 bytes, 1 tape blocks
x libapreq-1.0/c/stamp-h.in, 10 bytes, 1 tape blocks
x libapreq-1.0/c/Makefile.in, 11105 bytes, 22 tape blocks
x libapreq-1.0/eg/
x libapreq-1.0/eg/c/
x libapreq-1.0/eg/c/testapreq/
x libapreq-1.0/eg/c/testapreq/Makefile.apxs, 225 bytes, 1 tape blocks
x libapreq-1.0/eg/c/testapreq/Makefile.tmpl, 7 bytes, 1 tape blocks
x libapreq-1.0/eg/c/testapreq/mod_testapreq.c, 6283 bytes, 13 tape blocks
x libapreq-1.0/eg/c/testapreq/mod_testapreq.module, 229 bytes, 1 tape blocks
x libapreq-1.0/eg/perl/
x libapreq-1.0/eg/perl/cookie.pl, 1867 bytes, 4 tape blocks
x libapreq-1.0/eg/perl/file_upload.pl, 1708 bytes, 4 tape blocks
x libapreq-1.0/lib/
x libapreq-1.0/lib/Apache/
x libapreq-1.0/lib/Apache/libapreq.pm, 1182 bytes, 3 tape blocks
x libapreq-1.0/missing, 6283 bytes, 13 tape blocks
x libapreq-1.0/Makefile.in, 10250 bytes, 21 tape blocks
x libapreq-1.0/configure, 64229 bytes, 126 tape blocks
Removing previously used /tmp/.cpan/build/libapreq-1.0

CPAN.pm: Going to build J/JI/JIMW/libapreq-1.0.tar.gz

Can’t locate mod_perl.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at
Makefile.PL line 12.

BEGIN failed–compilation aborted at Makefile.PL line 12.

Running make test
Make had some problems, maybe interrupted? Won’t test
Running make install
Make had some problems, maybe interrupted? Won’t install

Checking for Apache::Session 1.53 …found
[…]

Peter_Losher@isc.org - Internet Software Consortium - http://www.isc.org/

Peter Losher wrote:

Is there a way to get around this dependency, or do I still have to install
mod_perl to satisfy the dependancy and just not use it? (I looked in the
RT/FM Installation Guide, but there was no answer there)

You should just be able to ignore testdeps’ complaint about mod_perl,
as long as everything else passes, I’d imagine.

I was also experiencing this problem and it doesn’t stop at testdeps. It
essentially fubars mason_handler.fcgi as well. Here’s a snippet of my
apache errors_log:

SNIPSNIPSNIP
[Fri May 24 15:45:20 2002] [warn] FastCGI: server “/opt/rt/rt/bin/mason_handler.fcgi” restarted (pid 11004)
Can’t locate mod_perl.pm in @INC (@INC contains: /opt/perl-5.6.1/lib/5.6.1/sun4-solaris /opt/perl-5.6.1/lib/5.6.1 /opt/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris /opt/perl-5.6.1/lib/site_perl/5.6.1 /opt/perl-5.6.1/lib/site_perl) at /opt/perl-5.6.1/lib/site_perl/5.6.1/HTML/Mason/FakeApache.pm line 8.
BEGIN failed–compilation aborted at /opt/perl-5.6.1/lib/site_perl/5.6.1/HTML/Mason/FakeApache.pm line 8.
Compilation failed in require at /opt/perl-5.6.1/lib/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 84.
BEGIN failed–compilation aborted at /opt/perl-5.6.1/lib/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 84.
Compilation failed in require at /dev/fd/3 line 21.
BEGIN failed–compilation aborted at /dev/fd/3 line 21.
[Fri May 24 15:45:20 2002] [warn] FastCGI: server “/opt/rt/rt/bin/mason_handler.fcgi” (pid 11004) terminated by calling exit with status '2’
SNIPSNIPSNIP

It appears that there are still Mason dependencies on modperl.

Based on information in the mason-devel list archives for this week, I
think that true fastcgi support is not in the current release.

So, the answer is to install only perl side of mod_perl:
o Download and unpack mod_perl from http://perl.apache.org
o perl Makefile.PL NO_HTTPD=1
o make
o make test
o make install

That worked for me. Let me know if you see anything I’ve missed.

Matt

Phil Homewood writes: