PDA

View Full Version : Apache::FileManager


bobbycrispbox
02-16-2006, 11:25 PM
I'm trying to get Apache::FileManager set up on my vps. I'm struggling here, Apache perl modules are weird to install...

What I've got so far:
Apache-FileManager-0.19 (http://search.cpan.org/~pmc/Apache-FileManager-0.19/FileManager.pm) from CPAN

This has a number of dependencies, but I can't for the life of me work out how to fullful them.

So I dived into installing it anyway, eventually (by trial and error) doing this:
perl Makefile.PL
result:
Warning: prerequisite Apache::Constants 1.09 not found.
Warning: prerequisite Apache::File 1.01 not found.
Warning: prerequisite Apache::Request 0 not found.
Warning: prerequisite Archive::Any 0.03 not found.
Warning: prerequisite File::NCopy 0.32 not found.
Warning: prerequisite File::Remove 0.2 not found.
Writing Makefile for Apache::FileManager

Then, again ignoring these dependencies because I can't work out what to do about them, I did this:
perl test.pl
result:
1..1
Can't locate Apache/Request.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.5/Apache/FileManager.pm line 209.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/Apache/FileManager.pm line 209.
Compilation failed in require at test.pl line 11.
BEGIN failed--compilation aborted at test.pl line 11.
not ok 1

So... Where to start? I'm missing something fundamental, and it's probably these dependencies, or the versions of perl/apache I'm using.

Incidentally, I get a 500 internal server error if I try and use Apache::FileManager - not really suprising given the above.

Any thoughts anyone?

RedOut
02-17-2006, 04:18 PM
Yes, you need those dependencies. Which are other perl modules.

You also should probably try using the CPAN shell, which might be already installed on your machine, type "cpan", or get it here: http://www.cpan.org/modules/by-module/CPAN/

Then, you can simply type "install Apache::FileManager" in the shell, it will check for dependencies, ask you if you want to install them, and install them for you, prompting along the way for any other dependencies.

To search the CPAN repository use "i /searchpattern/"

To upgrade the CPAN shell, use "install Bundle::CPAN" Might want to do this first.

It's a very nice tool for installing and finding perl modules.

bobbycrispbox
02-17-2006, 07:47 PM
Thanks RedOut. I've got a lot further now.

I think Apache::FileManager must be incompatible with Apache2/mod_perl2 - I'm getting this:

mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.

All I wanted was to be able to have the same file manager interface as my readynas provides... Ah well, back to the drawing board.

RedOut
02-17-2006, 08:45 PM
That makes sense. There's an entire Apache2 tree in CPAN now, and that Apache-FileManager hasn't been updated in 3 years, so it's pretty dead.