Discussion Locked

perl error

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a script and run it on linux and it in perl. When I run it give me this error, can any one tell me what wrong PLEASE Help:

<>
Can't locate abc.conf in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at team.cgi
line 3.
BEGIN failed--compilation aborted at team.cgi line 6.
Premature end
of script headers: /cgi-bin/team.cgi
<>

3 replies

by gmichaels

Somewhere you are referencing or calling a module abc.conf. @INC is an array of library pathc that perl will search to resolve the reference. Its equivalent to your PATH in DOS or UNIX or a classpath in java. If you don't know what abc.conf is then perhaps your Perl installation is missing some dependent modules. I am not familiar with that reference so it could be more specific to ypur app like a missing use lib ie. use lib ("/home/hkygods/prod/lib"); or a missing use ie. use Scripts::Generic;on a dependent module. The use lib statement adds libraries to the search path in @INC. When I see conf I think of config or configuration.

This discussion is closed to new replies.