You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Boysenberry Payne <bo...@humaniteque.com> on 2005/11/01 16:56:42 UTC

Re: Error while using Apache2::Reload

Well I've tried to reinstall perl, apache2 and mod_perl.
I have the @lib trimmed down too.  Still get the same error.
Anything else I can do?

Here is the error again:

Can't locate mod_perl.pm in @INC (@INC contains: 
/Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level 
/usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5 
/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level 
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .) 
at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
line 160.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 4:45 PM, Tyler MacDonald wrote:

> Boysenberry Payne <bo...@humaniteque.com> wrote:
>> I would like to do the "make uninstall" approach below first before
>> going
>> through reinstalling perl and MP2.
>> Before I do this I want to make sure I have the right syntax first.
>> would I just type 'make uninstall' in the source directory for MP2 
>> RC5?
>> Or do I need to put together a script that will run
>> 'ExtUtils::Install::uninstall(/path/to/.packlist)'
>> Where /path/to.packlist is what?
>
> 	From what I gather, if you've never done a "make clean" in your
> original source directory, "make uninstall" should do it. If not, on my
> system, the .packlist files get stuck in 
> /usr/local/lib/perl/5.8.7/auto/...
> and it looks like you can just do something like;
>
> 	cat /usr/local/lib/perl/5.8.7/auto/Devel/Cover/.packlist | xargs rm 
> -vf
>
> 	But I'd try "make uninstall" first.
>
> 		- Tyler
>
>
>


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> hmm, what was the rationale from changing it from __FILE__ to /dev/null?
>> just Apache2::Status?  why not undef instead of some fake entry?  it's
>> just
>>  a hash afterall :)
> 
> I originally had a patch for Apache2::Status for mod_perl.pm
> specifically so that you didn't get two lines displayed for for
> mod_perl2.pm and 1 for mod_perl.pm.... Very confusing if you had both in
> the same perl tree.
> 
> Stas suggested that rather then trying to patch each and every thing
> that relies on it, we patch the source lib/mod_perl.pm with the SVN
> commit above.  I agreed.

ok.

well, let's see if the patch for Apache2::Request helps a bit (I wasn't able
to quickly reproduce the error in the mp2 test suite).  if it does I guess
we'll be ok.  well, we might want to propagate a similar change to
Apache::Reload on CPAN and Apache::StatINC in mp1...

--Geoff

Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Geoffrey Young wrote:
>>>I think this is the same problem that just came up in a different
>>>circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>>
>>Geoff, Stas and I had a converstation about this before which led to a
>>change
>>
>>http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev
>>
>>I agree, that this needs to change, but it should make use of that?
> 
> 
> hmm, what was the rationale from changing it from __FILE__ to /dev/null?
> just Apache2::Status?  why not undef instead of some fake entry?  it's just
>  a hash afterall :)
I originally had a patch for Apache2::Status for mod_perl.pm 
specifically so that you didn't get two lines displayed for for 
mod_perl2.pm and 1 for mod_perl.pm.... Very confusing if you had both in 
the same perl tree.

Stas suggested that rather then trying to patch each and every thing 
that relies on it, we patch the source lib/mod_perl.pm with the SVN 
commit above.  I agreed.



-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> I think this is the same problem that just came up in a different
>> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
> 
> Geoff, Stas and I had a converstation about this before which led to a
> change
> 
> http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev
> 
> I agree, that this needs to change, but it should make use of that?

hmm, what was the rationale from changing it from __FILE__ to /dev/null?
just Apache2::Status?  why not undef instead of some fake entry?  it's just
 a hash afterall :)

--Geoff



Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Geoffrey Young wrote:
> 
> Boysenberry Payne wrote:
> 
>>Well I've tried to reinstall perl, apache2 and mod_perl.
>>I have the @lib trimmed down too.  Still get the same error.
>>Anything else I can do?
>>
>>Here is the error again:
>>
>>Can't locate mod_perl.pm in @INC (@INC contains:
>>/Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level
>>/usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5
>>/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
>>/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
>>at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm
>>line 160.
> 
> 
> I think this is the same problem that just came up in a different
> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
Geoff, Stas and I had a converstation about this before which led to a 
change

http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev

I agree, that this needs to change, but it should make use of that?

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Boysenberry Payne wrote:
> How do I apply the patch?  I'm still a little wet behind the ears, 
> please excuse me...
For one this simply, you could just go edit the INSTALLED version of Reload.pm...

On the other hand in general, you would
cd mod_perl-2.0.2-src
patch < /path/to/patch
make all install

> 
> Thanks,
> Boysenberry
> 
> boysenberrys.com | habitatlife.com | selfgnosis.com
> 
> On Nov 1, 2005, at 10:20 AM, Geoffrey Young wrote:
> 
>>
>> I think this is the same problem that just came up in a different
>> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>>
>> try this patch
>>
>> --Geoff
>> Index: lib/Apache2/Reload.pm
>> ===================================================================
>> --- lib/Apache2/Reload.pm    (revision 328346)
>> +++ lib/Apache2/Reload.pm    (working copy)
>> @@ -135,6 +135,7 @@
>>          my $file = $Apache2::Reload::INCS{$key};
>>
>>          next unless defined $file;
>> +        next unless -f $file;       # don't try to reload /dev/null
>>          next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>>          warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>>


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
How do I apply the patch?  I'm still a little wet behind the ears, 
please excuse me...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 1, 2005, at 10:20 AM, Geoffrey Young wrote:
>
> I think this is the same problem that just came up in a different
> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>
> try this patch
>
> --Geoff
> Index: lib/Apache2/Reload.pm
> ===================================================================
> --- lib/Apache2/Reload.pm	(revision 328346)
> +++ lib/Apache2/Reload.pm	(working copy)
> @@ -135,6 +135,7 @@
>          my $file = $Apache2::Reload::INCS{$key};
>
>          next unless defined $file;
> +        next unless -f $file;       # don't try to reload /dev/null
>          next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>          warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Boysenberry Payne wrote:
> Well I've tried to reinstall perl, apache2 and mod_perl.
> I have the @lib trimmed down too.  Still get the same error.
> Anything else I can do?
> 
> Here is the error again:
> 
> Can't locate mod_perl.pm in @INC (@INC contains:
> /Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level
> /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5
> /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
> /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
> at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm
> line 160.

I think this is the same problem that just came up in a different
circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.

try this patch

--Geoff