[rhn-users] RHEL 3 : httpd [error] Can't locate Apache.pm in @INC

Clinton Fernandes cfernand at utm.utoronto.ca
Thu Jun 2 16:25:14 UTC 2005


Correct me if I'm wrong, but /usr/lib/perl5/5.8.0/CGI/ isn't in your @INC.

I would guess that the above path was not technically "legal" OR was in
/etc/profile. By this I mean it isn't a default path for Perl. I know what
you're going to say: "CPAN installed the module, so how could it not be a
default path?" My simple answer: "I dunno."

Oftentimes, when the kernel is updated, things that you could get away with but
shouldn't before the upgrade suddenly break.

The easiest work around is this:

edit /etc/profile:
export PERLLIB=$PERLLIB:/usr/lib/perl5/5.8.0/CGI/

Good luck!

-- 
          my tail is dun.


Quoting FM <dist-list at LEXUM.UMontreal.CA>:

> Hello,
> After the reboot (kernel upgrade), I cannot start httpd because of :
> 
> 
> Starting httpd: [Thu Jun 02 11:46:48 2005] [error] Can't locate 
> Apache.pm in @INC (@INC contains: /home/web/perl/modules 
> /home/web/lexum/includes/modules 
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl 
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . 
> /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/5.8.0/CGI.pm line 
> 191.!Compilation failed in require at /home/web/perl/modules/LexUM.pm 
> line 38.!BEGIN failed--compilation aborted at 
> /home/web/perl/modules/LexUM.pm line 38.!Compilation failed in require 
> at /home/web/lexum/includes/modules/LexUMPortal.pm line 37.!BEGIN 
> failed--compilation aborted at 
> /home/web/lexum/includes/modules/LexUMPortal.pm line 37.!Compilation 
> failed in require at /etc/httpd/sites/lexum_startup.pl line 4.!BEGIN 
> failed--compilation aborted at /etc/httpd/sites/lexum_startup.pl line 
> 4.!Compilation failed in require at (eval 30) line 1.!
> [Thu Jun 02 11:46:48 2005] [error] Can't load Perl file: 
> /etc/httpd/sites/lexum_startup.pl for server 
> www-dev-lexum.lan.lexum.pri:0, exiting...!
> 
> BUt :
> locate Apache.pm :
> /usr/lib/perl5/5.8.0/CGI/Apache.pm
> 
> and /usr/lib/perl5/5.8.0 is in the @INC !
> 
> I'm clueless :)
> 
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
> 




More information about the rhn-users mailing list