I've got httpd and mod_perl installed, but I seem to have an application that requires part of mod_perl that doesn't seem to be properly installed into perl, notably, the 'Apache' portion.
To 'fix' this, cpan would like to install either mod_perl-1.29, or alternatively to install mod_perl-2.0.2. 1.29 doesn't seem smart, and 2.0.2 absolutely will not install over the top of 1.99-16.
I've looked for a package using:
yum list available | grep -i perl
yum list available | grep -i apache
And I don't get anything decent in terms of output.
For repositories, I've got CentOS-Base, CentOS-Media, kbsingh-CentOS-Extras, rpmforge.
# rpm -qa | grep httpd httpd-2.0.52-28.ent.centos4 httpd-suexec-2.0.52-28.ent.centos4 httpd-manual-2.0.52-28.ent.centos4 httpd-devel-2.0.52-28.ent.centos4 # rpm -qa | grep perl perl-HTML-Tagset-3.03-30 perl-DBI-1.40-8 perl-XML-Dumper-0.71-2 perl-5.8.5-36.RHEL4 perl-URI-1.30-4 perl-HTML-Parser-3.35-6 perl-XML-Parser-2.34-5 perl-Parse-Yapp-1.05-32 perl-XML-Encoding-1.01-26 perl-libxml-enno-1.02-31 perl-libxml-perl-0.07-30 mod_perl-1.99_16-4.centos4 mod_perl-devel-1.99_16-4.centos4 perl-Digest-SHA1-2.07-5 perl-Digest-HMAC-1.01-13 perl-CGI-Simple-0.077-5.el4.kb perl-Filter-1.30-6 newt-perl-1.08-7 perl-libwww-perl-5.79-5 perl-DateManip-5.42a-3 perl-DBD-MySQL-2.9004-3.1 perl-Net-DNS-0.48-1 perl-Apache-Session-1.6-1 #
The behavior I'm experiencing that has me suspecting my mod_perl installation is that when I type I get this 'Can't locate blah blah blah blah' message.
# perl use Apache2::Const; Can't locate Apache2/Const.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at - line 1. BEGIN failed--compilation aborted at - line 1.
Where do I begin to fix this?
Peter
Peter Serwe wrote:
I've got httpd and mod_perl installed, but I seem to have an application that requires part of mod_perl that doesn't seem to be properly installed into perl, notably, the 'Apache' portion.
To 'fix' this, cpan would like to install either mod_perl-1.29, or alternatively to install mod_perl-2.0.2. 1.29 doesn't seem smart, and 2.0.2 absolutely will not install over the top of 1.99-16.
In case it is RT you are trying to install, the RPM-packaged version described here: http://wiki.bestpractical.com/index.cgi?RPMInstall includes a packaged, working modperl2. If it isn't RT, you might still be able to get what you need from that repository. There are some confusing comments down the (wiki) page about updating httpd and modperl separately, but you don't have to do that if you are using this packaged version.
On Thu, Feb 08, 2007 at 06:04:57PM -0600, Les Mikesell wrote:
Peter Serwe wrote:
I've got httpd and mod_perl installed, but I seem to have an application that requires part of mod_perl that doesn't seem to be properly installed into perl, notably, the 'Apache' portion.
To 'fix' this, cpan would like to install either mod_perl-1.29, or alternatively to install mod_perl-2.0.2. 1.29 doesn't seem smart, and 2.0.2 absolutely will not install over the top of 1.99-16.
In case it is RT you are trying to install, the RPM-packaged version described here: http://wiki.bestpractical.com/index.cgi?RPMInstall includes a packaged, working modperl2. If it isn't RT, you might still be able to get what you need from that repository. There are some confusing comments down the (wiki) page about updating httpd and modperl separately, but you don't have to do that if you are using this packaged version.
I've got slightly newer self-rolled mod_perl packages available here too:
http://www.openfusion.com.au/mrepo/centos4-i386/RPMS.local/ http://www.openfusion.com.au/mrepo/centos4-x86_64/RPMS.local/
I've got them in production on several boxes, so they're reasonably well tested.
You definitely don't want to use the stock 1.99 mod_perl - it was reasonably obsolete when RHEL4 was released, and is positively archaic now.
Cheers, Gavin
-- Gavin Carr - http://www.openfusion.com.au - Linux, Perl, and Web Consulting - http://www.xool.com.au - Xool, Australian property search engine * Fashion is a variable, but style is a constant - Programming Perl