PDA

View Full Version : @inc can't locate CGI.pm or Carp.pm



jody
01-14-2004, 12:54 AM
None of my scripts that have
use CGI;
or
use CGI::Carp qw(fatalsToBrowser);

or working.

The error is they can't locate cgi.pm or carp.pm

I have done a whereis for both and they appear to be on the box.
The results of whereis are:
CGI:
Carp:

They are, in fact in /usr/lib/perl5/5.8.0

I even tried

use lib '/usr/lib/perl5/5.8.0';

use CGI::Carp qw(fatalsToBrowser);

I noticed in /usr/lib/perl5/5.8.0 that cgi.pm is actually named CGI.pm.newcgi
Could this be the problem and if so how do I get around it?

Thanks

Driving me nuts.

Jody

ProWebUK
01-14-2004, 05:35 AM
Not sure..... you could try installing using CPAN or source tio ensure they are there ok ;)

Chris