HELP with mod_perl version

HELP with mod_perl version

am 30.10.2002 03:15:25 von Alan Chung

Hi,

I have tried to upgrade my apache from 1.3.12 to 1.3.26 and openssl from
0.9.5a to 0.9.6g.
But when I upgraded mod_perl from 1.24 to 1.26 (it seems that I have to),
it could be compiled with no error but httpd couldn't be started with the
following error:

Apache.pm version 1.26 required!
/usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm is version 1.27
Perhaps you forgot to 'make install' or need to uninstall an old version?
Found: /usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm

From the error, it looks like I need to fall back to order version for
mod_perl (?),
So I did try to uninstall the current Perl and mod_perl and reinstall again.
I even tried the different version of mod_perl (1.25, 1.27) but with the
same error.

Could anyone give me an advice?

Alan

Re: HELP with mod_perl version

am 11.11.2002 10:27:15 von Stas Bekman

Alan Chung wrote:
> Hi,
>
> I have tried to upgrade my apache from 1.3.12 to 1.3.26 and openssl from
> 0.9.5a to 0.9.6g.
> But when I upgraded mod_perl from 1.24 to 1.26 (it seems that I have
> to), it could be compiled with no error but httpd couldn't be started
> with the following error:
>
> Apache.pm version 1.26 required!
> /usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm is version 1.27
> Perhaps you forgot to 'make install' or need to uninstall an old version?
> Found: /usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm
>
> From the error, it looks like I need to fall back to order version for
> mod_perl (?),
> So I did try to uninstall the current Perl and mod_perl and reinstall
> again.
> I even tried the different version of mod_perl (1.25, 1.27) but with the
> same error.
>
> Could anyone give me an advice?

Looks like you have either messed up several installations of mod_perl
or have forgotten to install the latest binary, which explains why it
requires 1.26. Check the timestamp on the httpd binary or the .so module
if you are using DSO. And go again through the install steps as
explained at http://perl.apache.org/docs/1.0/guide/install.html

If you want to make a complete cleanup of all older Apache modules prior
to installing the new ones, you could use find(1) to assist you to find
the older Apache:: modules. Something like the following:

find /usr/lib/perl5 -name 'Apache*'

and then deleting them if you are sure that this is what you want:

find /usr/lib/perl5 -name 'Apache*' -exec rm {} \;

Though be careful that you have a backup of things before you attempt to rm.

Notice that you don't have to uninstall *Perl* but only Apache modules.

____________________________________________________________ ______
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com