tomazos has asked for the wisdom of the Perl Monks concerning the following question:
From the O'Reilly mod_perl book I'm trying to get the Hello World script working.
I put the following lines in my httpd.conf file:
PerlRequire /usr/local/apache/conf/startup.pl PerlFreshRestart On <Location /hello/world> SetHandler perl-script PerlHandler Apache::Hello </Location>
Then when I try to restart Apache it croaks as follows:
root:/usr/local/apache/bin# ./apachectl graceful ./apachectl graceful: httpd not running, trying to start [Sat Dec 15 02:14:54 2001] [error] Perl lib version (v5.6.0) doesn't m +atch executable version (v5.6.1) at /usr/lib/perl5/i386-linux/Config. +pm line 21. Compilation failed in require at /usr/lib/perl5/lib.pm line 4. BEGIN failed--compilation aborted at /usr/lib/perl5/lib.pm line 4. Compilation failed in require at /usr/local/apache/conf/startup.pl lin +e 5. BEGIN failed--compilation aborted at /usr/local/apache/conf/startup.pl + line 5. Compilation failed in require at (eval 1) line 1. Syntax error on line 40 of /usr/local/apache/conf/httpd.conf: Perl lib version (v5.6.0) doesn't match executable version (v5.6.1) at + /usr/lib/perl5/i386-linux/Config.pm line 21. Compilation failed in require at /usr/lib/perl5/lib.pm line 4. BEGIN failed--compilation aborted at /usr/lib/perl5/lib.pm line 4. Compilation failed in require at /usr/local/apache/conf/startup.pl lin +e 5. BEGIN failed--compilation aborted at /usr/local/apache/conf/startup.pl + line 5. Compilation failed in require at (eval 1) line 1. ./apachectl graceful: httpd could not be started
It looks like it has something to do with a Perl 5.6.0 vs Perl 5.6.1 issue, but that is a big guess. Anyone been through this before?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting mod_perl working
by IlyaM (Parson) on Dec 15, 2001 at 19:22 UTC | |
by tomazos (Deacon) on Dec 20, 2001 at 09:58 UTC | |
|
Re: Getting mod_perl working
by maverick (Curate) on Dec 15, 2001 at 22:54 UTC | |
by Beatnik (Parson) on Dec 16, 2001 at 00:20 UTC |