perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barksdale, Ray" <>
Subject RE: Problem Recompiling mod_perl
Date Mon, 27 Feb 2006 21:50:02 GMT
My longtime-redhat-user two cents:
Don't touch the system perl (5.8.0). RPM probably won't let you.
It seems you're headed in the right direction. Just keep moving.
Get the apache and mod_perl sources and recompile into /usr/local.
You may want to uninstall your RPM packages for apache and mod_perl 
to keep from getting confused with two versions of everything.
This is standard procedure here. We never use the RedHat packages.


	From: Kaplan, Andrew H. [mailto:AHKAPLAN@PARTNERS.ORG] 
	Sent: Monday, February 27, 2006 3:21 PM
	Subject: Problem Recompiling mod_perl

	Hi there -


	I am going through the motions of recompiling mod_perl on a Red
Hat Enterprise 3 server. The server was originally configured with Perl
5.8.0, but the application

	which I am trying to install requires Perl 5.8.3 or later. I
downloaded the source code for version 5.8.8 and installed it onto the
system. The server currently has 

	two versions of Perl where the libraries for version 5.8.0 are
located in /usr/lib/perl5, and those for version 5.8.8 are located in
/usr/local/lib/perl5. The 5.8.0 binary 

	was located in the /usr/bin directory. I had renamed the binary
to perl_orig and created a symbolic link to the /usr/local/bin/
directory where the latter version is located. 


	After compiling mod_perl, I modified the httpd.conf file to
include the following information:


	<VirtualHost ip address:80>

	        ServerName hostname

	        ServerAdmin email address

	        DocumentRoot /var/opt/rt3/share/html

	        ErrorLog /usr/local/apache/logs/rt_error_log

	        ErrorLog /usr/local/apache/logs/rt_error_log





	Alias /rt /opt/rt3/share/html

	    <Location /rt>

	        AddDefaultCharset UTF-8

	        SetHandler perl-script

	        PerlHandler RT::Mason

	        PerlModule Apache::DBI

	        PerlRequire /opt/rt3/bin/



	Whenever I try to start the server with the above information, I
get the following error:


	Syntax error on line 577 of

	Can't locate Apache/ in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/usr/local/apache/ /usr/local/apache/lib/perl) at (eval 5) line 3.


	Line 577 corresponds to the PerlModule Apache::DBI line. I
verified the Apache::DBI module has been installed. 


	I tried renaming the /usr/lib/perl5 directory, and creating a
symbolic link to  /usr/local/lib/perl5, but that caused the Apache
server to not be able to start. The error message I got in this case is
the following:


	/usr/local/apache_1.3.perl/bin/httpd: error while loading shared
libraries: cannot open shared object file: No such file or

	/usr/local/apache/bin/apachectl start: httpd could not be


	I need to recompile mod_perl to use the 5.8.8 libraries. One
idea I had was uninstalling perl 5.8.0 completely from the system. Does
anyone have insights into this? Thanks.




View raw message