Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to fix @INC

Status
Not open for further replies.

tamray

IS-IT--Management
Feb 8, 2005
43
US
I ran up2date on my Fedora box and now perl does not load. I am getting the following error when attempting to start apache:


[error] Can't locate Apache/Constants.pm in @INC (@INC contains: /opt/rt3/local/lib /opt/rt3/lib /data/WebGUI/lib /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /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-

etc, etc....

Any idea how to correct this?
 
If its not, then find the path for this module and

push @INC,"mypath";

Simple?
 
Or use a "use lib" statement as in:

use lib "/path/to/module";
 
Is this done via the shell or in a file?
 
Re-install the Apache::Constants module using CPAN.

When updating your Fedora box using up2date. Was the original apache install done by .RPM or .source?

 
It was done by rpm. I found the module that is causing the problem (webmux.pl). I added use lib (path to Contstants.pm)to it, but I still get the same error. If I comment out the line in httpd.conf that calls webmux.pl, apache will start without errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top