You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ixkorr Oxkarr <ox...@yahoo.com> on 2005/01/24 03:06:42 UTC

Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Hello,

I am trying to upgrade from mod_perl 1.29 to mod_perl
1.99 on Apache 2.0 (the OS is RHL9).

I have installed the mod_perl 1.99 binary RPM, but
when I check the version through perl (with the
command perl -Mmod_perl -e 'print
$mod_perl::VERSION'), I still get 1.29.

I tried upgrading via CPAN, I get the error "Cannot
install mod_perl/1.999.21 on top of mod_perl/1.29."

Is there some way I can uninstall mod_perl 1.29 so
that I can start using mod_perl 1.99?

Thanks for any info or pointers,

IO


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by Perrin Harkins <pe...@elem.com>.
On Mon, 2005-01-24 at 08:04 -0800, Ixkorr Oxkarr wrote:
> Is there any way I can force an unload of
> mod_perl-1.29?

There is no official way of removing perl modules, but you can go in and
delete mod_perl.pm and the stuff under Apache/ in your @INC path.

- Perrin


Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by Ixkorr Oxkarr <ox...@yahoo.com>.
Randy,

Thanks for your help.

perl -MApache2 -Mmod_perl -e 'print
$mod_perl::VERSION'
still reports mod_perl-1.29, even after I have done a
"make uninstall" in the mod_perl-1.29 source
directory, and I have installed the mod_perl-1.99 RPM.
Is there any way I can force an unload of
mod_perl-1.29?

Thanks,
IO

--- Randy Kobes <ra...@theoryx5.uwinnipeg.ca> wrote:

> On Sun, 23 Jan 2005, Ixkorr Oxkarr wrote:
> 
> > Hello,
> >
> > I am trying to upgrade from mod_perl 1.29 to
> mod_perl
> > 1.99 on Apache 2.0 (the OS is RHL9).
> >
> > I have installed the mod_perl 1.99 binary RPM, but
> > when I check the version through perl (with the
> > command perl -Mmod_perl -e 'print
> > $mod_perl::VERSION'), I still get 1.29.
> 
> This may depend on the way the rpm was made, but
> it might have happened that mod_perl-2 was installed
> relative to an Apache2/ subdirectory (so as to not
> overwrite existing mod_perl-1 files). Does
>  perl -MApache2 -Mmod_perl -e 'print
> $mod_perl::VERSION'
> report the upgraded mod_perl-2?
> 
> > I tried upgrading via CPAN, I get the error
> "Cannot
> > install mod_perl/1.999.21 on top of
> mod_perl/1.29."
> 
> That means that mod_perl wants to install things
> relative to
> an Apache2/ subdirectory. Try configuring as
>   perl Makefile.PL MP_INST_APACHE2=1 ....
> which will do this for you. See
>
http://perl.apache.org/docs/2.0/user/install/install.html#Installing_mod_perl_from_Source
> for further details.
> 
> > Is there some way I can uninstall mod_perl 1.29 so
> > that I can start using mod_perl 1.99?
> 
> With the installation into the Apache2/
> subdirectory, it's
> possible to have both mod_perl-1 and mod_perl-2
> installs in
> the same perl tree - this may be advantageous if you
> want to
> upgrade while still keeping the mod_perl-1
> installation
> running.
> 
> After installing mod_perl-2, you have to adjust @INC
> to see things under the Apache2/ subdirectory - you
> can
> do this by putting a
>    use Apache2;
> in a startup.pl, or a
>    PerlModule Apache2
> directive in httpd.conf. See
>
http://perl.apache.org/docs/2.0/user/config/config.html#Accessing_the_mod_perl_2_0_Modules
> for further details.
> 
> -- 
> best regards,
> randy kobes
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Sun, 23 Jan 2005, Ixkorr Oxkarr wrote:

> Hello,
>
> I am trying to upgrade from mod_perl 1.29 to mod_perl
> 1.99 on Apache 2.0 (the OS is RHL9).
>
> I have installed the mod_perl 1.99 binary RPM, but
> when I check the version through perl (with the
> command perl -Mmod_perl -e 'print
> $mod_perl::VERSION'), I still get 1.29.

This may depend on the way the rpm was made, but
it might have happened that mod_perl-2 was installed
relative to an Apache2/ subdirectory (so as to not
overwrite existing mod_perl-1 files). Does
 perl -MApache2 -Mmod_perl -e 'print $mod_perl::VERSION'
report the upgraded mod_perl-2?

> I tried upgrading via CPAN, I get the error "Cannot
> install mod_perl/1.999.21 on top of mod_perl/1.29."

That means that mod_perl wants to install things relative to
an Apache2/ subdirectory. Try configuring as
  perl Makefile.PL MP_INST_APACHE2=1 ....
which will do this for you. See
http://perl.apache.org/docs/2.0/user/install/install.html#Installing_mod_perl_from_Source
for further details.

> Is there some way I can uninstall mod_perl 1.29 so
> that I can start using mod_perl 1.99?

With the installation into the Apache2/ subdirectory, it's
possible to have both mod_perl-1 and mod_perl-2 installs in
the same perl tree - this may be advantageous if you want to
upgrade while still keeping the mod_perl-1 installation
running.

After installing mod_perl-2, you have to adjust @INC
to see things under the Apache2/ subdirectory - you can
do this by putting a
   use Apache2;
in a startup.pl, or a
   PerlModule Apache2
directive in httpd.conf. See
http://perl.apache.org/docs/2.0/user/config/config.html#Accessing_the_mod_perl_2_0_Modules
for further details.

-- 
best regards,
randy kobes

Re: Apache Reload -- Subroutine xx redefined

Posted by David Romero <da...@vendingmexico.com>.
David Romero wrote:

> Hi all.
>
> i have a problem with apache reload module,
> when im restart apache all works fine,
> but  on frist change on my module apache reload return an error
>
> this is my error
> [Mon Jan 24 13:00:36 2005] [error] [client 127.0.0.1] Subroutine 
> display redefined at /usr/local/unicon 
> io/Unicornio/Politica/Categorias.pm line 24.\nCompilation failed in 
> require at /usr/lib/perl5/vendor_pe 
> rl/5.8.3/i386-linux-thread-multi/Apache/Reload.pm line 151.\n, 
> referer: http://vending.homeip.net/unico rnio/Politica/Categorias
> [Mon Jan 24 13:00:36 2005] [error] [client 127.0.0.1] Subroutine 
> display redefined at /usr/local/unicon 
> io/Unicornio/Politica/Categorias.pm line 24.\nCompilation failed in 
> require at /usr/lib/perl5/vendor_pe 
> rl/5.8.3/i386-linux-thread-multi/Apache/Reload.pm line 151.\n
>
> my config
> PerlModule Apache::Reload
> PerlInitHandler Apache::Reload
> PerlSetVar ReloadAll Off
>
> whit
> use Apache::Reload;   # on my module
>
> Thanks
>
>
> David Romero
> Chihuahua, Chih.
>
>
After some checks i detect my problem, the problem is whit the
use warnings FATAL => 'all';
pragma.

the question is....
which is the way that i have to take? , to use Apache::Reload whith
use warnings FATAL => 'all';
pragma on  modules and handlers?

David Romero
Chihuahua, Chih.


Apache Reload -- Subroutine xx redefined

Posted by David Romero <da...@vendingmexico.com>.
Hi all.

i have a problem with apache reload module,
when im restart apache all works fine,
but  on frist change on my module apache reload return an error

this is my error
[Mon Jan 24 13:00:36 2005] [error] [client 127.0.0.1] Subroutine display 
redefined at /usr/local/unicon io/Unicornio/Politica/Categorias.pm line 
24.\nCompilation failed in require at /usr/lib/perl5/vendor_pe 
rl/5.8.3/i386-linux-thread-multi/Apache/Reload.pm line 151.\n, referer: 
http://vending.homeip.net/unico rnio/Politica/Categorias
[Mon Jan 24 13:00:36 2005] [error] [client 127.0.0.1] Subroutine display 
redefined at /usr/local/unicon io/Unicornio/Politica/Categorias.pm line 
24.\nCompilation failed in require at /usr/lib/perl5/vendor_pe 
rl/5.8.3/i386-linux-thread-multi/Apache/Reload.pm line 151.\n

my config
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off

whit
use Apache::Reload;   # on my module

Thanks


David Romero
Chihuahua, Chih.


Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 24 Jan 2005, Ixkorr Oxkarr wrote:

> I am running Apache 2.0.40.
>
> The problem is that I am trying to compile some code
> that checks to see if mod_perl 1.99 is installed with
> the statement "use mod_perl 1.99;". This fails, even
> though I have installed the mod_perl 1.99 RPM and I am
> running a version of Apache 2.
>
> Clearly, Perl thinks I am still running mod_perl 1.29.
> How can I dissuade of this notion?

Do you have a
   use Apache2;
in your script? See
http://perl.apache.org/docs/2.0/user/config/config.html#Accessing_the_mod_perl_2_0_Modules
for further details.

-- 
best regards,
randy kobes

Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by INFOQUEST USA INC <in...@hotmail.com>.
It's hard to tell without knowing more details. I think that either you 
upgraded your Apache from 1.3x to 2.x or installed another Apache Server 
2.x. I assume that you had installed mod_perl 1.29 with Apache 1.3x and 
then upgraded to Apache 2.x & mod_perl 1.99. Because mod_perl 1.29 can not 
be installed with Apache 2.x and you mentioned that you have upgraded 
mod_perl from 1.29 to 1.99.

How did you compile mod_perl -- DSO or Static? Anyway, what version of 
mod_perl you see after restart your server:

     service httpd restart
     tail -10 /usr/local/apache/logs/error_log

If you get the correct version (mod_perl 1.99). Then you have no problem 
with your installation. You can try to edit the following file 
(perllocal.pod) with any avilable editor in your system:

     vi /usr/lib/perl5/5.8.4/i686-linux/perllocal.pod

You will probably find multiple entries of mod_perl versions. Try to find 
the following lines from this file and delete them. Please do not delete 
anything outsite the tag "=head2"  & "=back". A sample entry could be as 
follows and you probably have more than one entries like this:


      =head2 Thu Dec  2 01:45:54 2003: C<Module> L<mod_perl|mod_perl>
      =over 4
      =item *
      C<installed into: /usr/lib/perl5/site_perl/5.x.x>
      =item *
      C<LINKTYPE: dynamic>
      =item *
      C<VERSION: 1.29>
      =item *
      C<EXE_FILES: >
      =back


(x - is the version number of your perl or apache)

I am not sure though - if it will work for you but you can try it before 
reinstalling perl since reinstalling perl could be the best solution.

Thanks


Khalid




----- Original Message ----- 
From: "Ixkorr Oxkarr" <ox...@yahoo.com>
To: "INFOQUEST USA INC" <in...@hotmail.com>; 
<mo...@perl.apache.org>
Sent: Monday, January 24, 2005 12:51 PM
Subject: Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99


|I am running Apache 2.0.40.
|
| The problem is that I am trying to compile some code
| that checks to see if mod_perl 1.99 is installed with
| the statement "use mod_perl 1.99;". This fails, even
| though I have installed the mod_perl 1.99 RPM and I am
| running a version of Apache 2.
|
| Clearly, Perl thinks I am still running mod_perl 1.29.
| How can I dissuade of this notion?
|
| Thanks,
| IO
|
| --- INFOQUEST USA INC <in...@hotmail.com>
| wrote:
|
| > mod_perl 1.99 or later requires Apache 2.0 or later
| > - it doesn't work with Apache 1.3x.
| >
| > Thanks & Regards
| >
| >
| > Khalid
| >
| >
| > ----- Original Message ----- 
| > From: "Ixkorr Oxkarr" <ox...@yahoo.com>
| > To: <mo...@perl.apache.org>
| > Sent: Sunday, January 23, 2005 8:06 PM
| > Subject: Can't upgrade from mod_perl 1.29 ->
| > mod_perl 1.99
| >
| >
| > | Hello,
| > |
| > | I am trying to upgrade from mod_perl 1.29 to
| > mod_perl
| > | 1.99 on Apache 2.0 (the OS is RHL9).
| > |
| > | I have installed the mod_perl 1.99 binary RPM, but
| > | when I check the version through perl (with the
| > | command perl -Mmod_perl -e 'print
| > | $mod_perl::VERSION'), I still get 1.29.
| > |
| > | I tried upgrading via CPAN, I get the error
| > "Cannot
| > | install mod_perl/1.999.21 on top of
| > mod_perl/1.29."
| > |
| > | Is there some way I can uninstall mod_perl 1.29 so
| > | that I can start using mod_perl 1.99?
| > |
| > | Thanks for any info or pointers,
| > |
| > | IO
| > |
| > |
| > |
| > | __________________________________
| > | Do you Yahoo!?
| > | Yahoo! Mail - Find what you need with new enhanced
| > search.
| > | http://info.mail.yahoo.com/mail_250
| > |
|
|
|
|
| __________________________________
| Do you Yahoo!?
| Yahoo! Mail - 250MB free storage. Do more. Manage less.
| http://info.mail.yahoo.com/mail_250
| 

Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by Ixkorr Oxkarr <ox...@yahoo.com>.
I am running Apache 2.0.40.

The problem is that I am trying to compile some code
that checks to see if mod_perl 1.99 is installed with
the statement "use mod_perl 1.99;". This fails, even
though I have installed the mod_perl 1.99 RPM and I am
running a version of Apache 2.

Clearly, Perl thinks I am still running mod_perl 1.29.
How can I dissuade of this notion?

Thanks,
IO
 
--- INFOQUEST USA INC <in...@hotmail.com>
wrote:

> mod_perl 1.99 or later requires Apache 2.0 or later
> - it doesn't work with Apache 1.3x. 
> 
> Thanks & Regards
> 
> 
> Khalid
> 
> 
> ----- Original Message ----- 
> From: "Ixkorr Oxkarr" <ox...@yahoo.com>
> To: <mo...@perl.apache.org>
> Sent: Sunday, January 23, 2005 8:06 PM
> Subject: Can't upgrade from mod_perl 1.29 ->
> mod_perl 1.99
> 
> 
> | Hello,
> | 
> | I am trying to upgrade from mod_perl 1.29 to
> mod_perl
> | 1.99 on Apache 2.0 (the OS is RHL9).
> | 
> | I have installed the mod_perl 1.99 binary RPM, but
> | when I check the version through perl (with the
> | command perl -Mmod_perl -e 'print
> | $mod_perl::VERSION'), I still get 1.29.
> | 
> | I tried upgrading via CPAN, I get the error
> "Cannot
> | install mod_perl/1.999.21 on top of
> mod_perl/1.29."
> | 
> | Is there some way I can uninstall mod_perl 1.29 so
> | that I can start using mod_perl 1.99?
> | 
> | Thanks for any info or pointers,
> | 
> | IO
> | 
> | 
> | 
> | __________________________________ 
> | Do you Yahoo!? 
> | Yahoo! Mail - Find what you need with new enhanced
> search.
> | http://info.mail.yahoo.com/mail_250
> |



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

Re: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99

Posted by INFOQUEST USA INC <in...@hotmail.com>.
mod_perl 1.99 or later requires Apache 2.0 or later - it doesn't work with Apache 1.3x. 

Thanks & Regards


Khalid


----- Original Message ----- 
From: "Ixkorr Oxkarr" <ox...@yahoo.com>
To: <mo...@perl.apache.org>
Sent: Sunday, January 23, 2005 8:06 PM
Subject: Can't upgrade from mod_perl 1.29 -> mod_perl 1.99


| Hello,
| 
| I am trying to upgrade from mod_perl 1.29 to mod_perl
| 1.99 on Apache 2.0 (the OS is RHL9).
| 
| I have installed the mod_perl 1.99 binary RPM, but
| when I check the version through perl (with the
| command perl -Mmod_perl -e 'print
| $mod_perl::VERSION'), I still get 1.29.
| 
| I tried upgrading via CPAN, I get the error "Cannot
| install mod_perl/1.999.21 on top of mod_perl/1.29."
| 
| Is there some way I can uninstall mod_perl 1.29 so
| that I can start using mod_perl 1.99?
| 
| Thanks for any info or pointers,
| 
| IO
| 
| 
| 
| __________________________________ 
| Do you Yahoo!? 
| Yahoo! Mail - Find what you need with new enhanced search.
| http://info.mail.yahoo.com/mail_250
|