You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Hans de Groot <ha...@dandy.nl> on 2006/11/11 00:10:08 UTC

Can't locate Apache2/compat.pm

Hello,

Okay maybe I should start with some thing more basic like figuring out
what mod_perl I am really using?.

I am using mod_perl 1.99_16 (it's the one that came with centos 4.3)

It seems that this is mod_perl 2.

I am reading the documentation at http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_request_

They mention Apache2::compat and other Apache2::* that I do not have
like 

use Apache2::RequestUtil ();

I get this message Can't locate Apache2/RequestUtil.pm in @INC...

And a locate for RequestUtil.pm results in only this answer
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Apache/RequestUtil.pm

So can some one explain what I am doing wrong? I though I have mod_perl
2 and not mod_perl 1. But why am I missing those Apache2 .pm files? 

I have a feeling I am in between versions? But Embedded perl works fine,
and it uses mod perl.  But I can't get any example to work properly. 

I hope some one can shed some light on this.

Regards

Hans de Groot




Re: Can't locate Apache2/compat.pm

Posted by Jonathan Vanasco <jv...@2xlp.com>.
On Nov 10, 2006, at 6:10 PM, Hans de Groot wrote:

> I am using mod_perl 1.99_16 (it's the one that came with centos 4.3)
>
> It seems that this is mod_perl 2.

uninstall it immediately, and install 2.0x -- whatever is current.

There was a giant a API change early on in the 2.0 cycle.  The docs  
reflect the new api namespaces, not the deprecated stuff you have.

That should solve a lot of your problems.



// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -