From: Martin F. <ma...@ne...> - 2006-02-09 20:34:07
|
> I configured httpd.conf then restart apache2. But apache2 did not > start with following message. > > [error] Can't locate Apache2.pm in @INC > .....blah blah.... > at /var/www/bibliotech/Bibliotech/Apache.pm line 13. > BEGIN failed--compilation aborted at > /var/www/bibliotech/Bibliotech/Apache.pm line 13. > Compilation failed in require at (eval 2) line 3. > [Sat Feb 04 17:00:42 2006] [error] Can't load Perl module > Bibliotech::Apache for server > > Line 13 is "use Apache2". I searched "Apache2" in CPAN Search Site but > I can't find any module named Apache2. What is Apache2? > > On my system, there is only Apache2.pm in > "/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Bundle" > directory. > > Can I change Line 13 from "use Apache2" to "use Bundle::Apache2"? > > I don't know well about perl or CPAN. Please help me. Bundle::Apache2 is not correct. Bundles are just collections of related modules on CPAN that make downloading easier; they are not to be called directly. Apache2 is part of mod_perl and we recommend that you get the mod_perl package from your distribution vendor. Are you on Linux? What distro and version? For example, on our dev server running Red Hat Enterprise Linux 4, the packages httpd-2.0.52-22.ent and mod_perl-1.99_16-4 provide the Apache2 module. On Debian-based distributions you'd probably be best looking into apache2 and libapache2-mod-perl2. It may be possible to get Apache2.pm from CPAN but it's so closely related to Apache itself that I always get it packaged from the same source that packaged Apache for me. If you're on a Unix system or a source-based Linux system then my advice is not as applicable but generally speaking I'd probably just visit the Apache2 web site and try to follow directions for compiling mod_perl. Does this help? Cheers, Martin Flack |