Apache2 mod_perl, missing File.pm, cant use Compress

H

Holger Banko

I am trying to migrate a website from mod_perl1.0 to mod_perl2.0 and I
am a complete noob when it comes to Perl. I got already stuck with pre-
loading of the Compress Module. In my Apache configuration it looks
like this

PerlModule Apache::DBI
PerlModule Apache2::Filter
PerlModule Apache::Compress

The DBI and Filter module are not complaining, but the Compress.pm is
missing File.pm

Wed Oct 22 01:49:54 2008] [error] Can't locate Apache/File.pm in @INC
(@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/
perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/
share/perl/5.8 /usr/local/lib/site_perl . /etc/apache2) at /usr/local/
share/perl/5.8.8/Apache/Compress.pm line 5.\nBEGIN failed--compilation
aborted at /usr/local/share/perl/5.8.8/Apache/Compress.pm line
5.\nCompilation failed in require at (eval 6) line 3.\n
[Wed Oct 22 01:49:54 2008] [error] Can't load Perl module
Apache::Compress for server holgerdev2:0, exiting...

Trying to be smart, I used cpan:

install Apache::File

But it fails, because File.pm is looking for Apache 1.3 source, so not
really helpful for Apache2. An Apache2::File is not available.

I checked the migration guide and found this

Apache::File

"The methods from mod_perl 1.0's module Apache::File have been either
moved to other packages or removed."

Yes? To which packages? How can I get Compress to work or is there a
set of Apache2 perl modules?

Help :)

Holger
 
J

J. Gleixner

Holger said:
I am trying to migrate a website from mod_perl1.0 to mod_perl2.0 and I
am a complete noob when it comes to Perl. I got already stuck with pre-
loading of the Compress Module. In my Apache configuration it looks
like this [...]
I checked the migration guide and found this

Apache::File

"The methods from mod_perl 1.0's module Apache::File have been either
moved to other packages or removed."

Yes? To which packages? How can I get Compress to work or is there a
set of Apache2 perl modules?

mod_deflate ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top