I just installed mod_perl 2 onto my Red Hat Linux 7.3 system. My system has Apache 1.3 and Apache 2.0 on it, so I ran the following command to build mod_perl (initially):
perl Makefile.PL MP_INST_APACHE2=1 MP_APXS=/etc/httpd2/bin/apxs MP_APR_CONFIG=/etc/httpd2/bin/apr-config
Which corresponds to my directories. Then of course I ran make, make test, and make install. I have set up httpd.conf for Apache correctly and it is giving me no errors, and I set mod_perl to handle all .pl and .cgi files. However, when I access these files in my web browser, I get a 500 Internal Server error, and the following in my Apache error_log file:
[Tue Dec 23 18:17:50 2003] [error] failed to resolve handler `Apache::Registry' [Tue Dec 23 18:17:50 2003] [error] [client 65.38.10.118] Can't locate loadable object for module Apache::Constants in @INC ($ Compilation failed in require at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache.pm line 6. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache.pm line 6. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache/Registry.pm line 2. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache/Registry.pm line 2. Compilation failed in require at (eval 2) line 3.
Any idea what might be wrong?
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html