[exec] Can't locate Term/ANSIColor.pm in @INC (@INC contains: /
usr/lib/perl
5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /
usr/lib/per
l5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/
vendor_perl/5.8/cyg
win /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .)
at -e line
2.
[exec] BEGIN failed--compilation aborted at -e line 2.
Can anybody help me in this regard?
Thanks
Pradeep
> c:\perl\bin;c:\perl\lib;c:\perl\site\lib is already appended to PATH
> env variable.
The path should contain both c:\perl\bin and c:\perl\site\bin.
No point in adding c:\perl\lib and c:\perl\site\lib.
> [exec] Can't locate Term/ANSIColor.pm in @INC (@INC contains: /
> usr/lib/perl
> 5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /
> usr/lib/per
> l5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/
> vendor_perl/5.8/cyg
> win /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .)
> at -e line
> 2.
This is cygwin perl, not ActivePerl. You probably need to *prepend*
(instead of *append*) c:\perl\bin and c:\perl\site\bin to the path.
That way, ActivePerl will be found before Cygwin perl.
Cheers,
Rob
Iam new to Perl.Thanks Rob for your help. could you please clarify
what do u mean by prepend? Do you mean the @INC array needs to be
updated with perl path first and then cygwin perl path? If so could
you please let me how can I update the @INC array non progrmatically?
>> This is cygwin perl, not ActivePerl. You probably need to *prepend*
>> (instead of *append*) c:\perl\bin and c:\perl\site\bin to the path.
>> That way, ActivePerl will be found before Cygwin perl.
> Iam new to Perl.
That does not require that we read Perl's documentation to you...
You should read up on a subject first to see if you can do it yourself.
You don't want to have to be running to Usenet every time a problem
comes up, you want to learn how to be independant enough to solve
problems without depending on others.
> please clarify
> what do u mean by prepend?
> Do you mean the @INC array
All of Perl's variables are documented in:
perldoc perlvar
so when you have a question about a Perl variable, you should
look up that variable there.
> needs to be
> updated with perl path first and then cygwin perl path? If so could
> you please let me how can I update the @INC array non progrmatically?
If you are having trouble with a module, then you should search
the Frequently Asked Questions to see if there are any about modules:
perldoc -q module
perlfaq8 mentions multiple ways of updating the @INC array.
If you plan to run perl, then you should read
perldoc perlrun
(take particular note of PERL5LIB)
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
> could you please clarify
> what do u mean by prepend?
When you "append" you add something at the end.
When you "prepend" you add something at the beginning.
I mean you should add c:\perl\bin and c:\perl\site\bin to the
*beginning* of the path, not the end - eg:
set PATH=c:\perl\bin;c:\perl\site\bin;%PATH%
Cheers,
Rob
I tried hard to fix this issue.. But failed to resolve.I also followed
what Tad McClellan mentioned above. But could not get a clue.