Operating System - Linux
1828341 Members
3743 Online
109976 Solutions
New Discussion

Re: Problem recompiling mod_perl

 
Andrew Kaplan
Super Advisor

Problem recompiling mod_perl

Hi there –

I am going through the motions of setting up RT version 3.4.4 on a Red Hat Enterprise 3 server. The server originally had Perl 5.8.0 and MySQL 3.23. I upgraded Perl to version 5.8.8 without removing the original perl files, and removed older MySQL database for version 4.1.16. The installation procedure went by without any major problems. I am at the point of setting up the web interface. The server currently has two websites on it, and the rt website would be added to the list. The new virtual server will have its own ip address and hostname.



I am modifying the httpd.conf file and have the following entries set up for the rt server:

Alias /rt /opt/rt3/share/html



AddDefaultCharset UTF-8

SetHandler perl-script

PerlHandler RT::Mason

PerlModule Apache::DBI

PerlRequire /opt/rt3/bin/webmux.pl





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



Syntax error on line 577 of /usr/local/apache_1.3.perl/conf/httpd.conf:

Can't locate Apache/DBI.pm 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/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /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 recompiled mod_perl to run with perl 5.8.8. The newer version of perl is located in the /usr/local/lib directory. The recompilation appeared to go without a problem, but the same error message occurred when I tried running the server with aforementioned information.
A Journey In The Quest Of Knowledge
1 REPLY 1
Andrey Deryugin
Honored Contributor

Re: Problem recompiling mod_perl

Hello Andrew,

Try add a softlink ('ln -s ') to Apache, dir where is DBI.pm is located, into one of those @INC dirs.

HTH

Regards,
Andrey