| Computers Forum Index » Computer Languages (Perl - Modules) » Can't locate Term/ANSIColor.pm... |
|
Page 1 of 1 |
|
| Author |
Message |
| Pradeep... |
Posted: Thu Sep 03, 2009 5:40 am |
|
|
|
Guest
|
Hi all,
I have installed the perl 5.8.8(ActivePerl-5.8.8.824-MSWin32-
x86-287188.msi from http://downloads.activestate.com/ActivePerl/Windows/5.8/)
and perl 5.8.9 also. I am getting the following error when my script
runs.
c:\perl\bin;c:\perl\lib;c:\perl\site\lib is already appended to PATH
env variable.
[exec] Can't locate Term/ANSIColor.pm in at (no spam) INC ( at (no spam) 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 |
|
|
| Back to top |
|
|
|
| sisyphus... |
Posted: Thu Sep 03, 2009 12:19 pm |
|
|
|
Guest
|
On Sep 3, 3:40 pm, Pradeep <bubunia2000s... at (no spam) gmail.com> wrote:
Quote: 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.
Quote: [exec] Can't locate Term/ANSIColor.pm in at (no spam) INC ( at (no spam) 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 |
|
|
| Back to top |
|
|
|
| Pradeep... |
Posted: Thu Sep 03, 2009 8:48 pm |
|
|
|
Guest
|
On Sep 3, 5:19 pm, sisyphus <sisyphus... at (no spam) gmail.com> wrote:
Quote: On Sep 3, 3:40 pm, Pradeep <bubunia2000s... at (no spam) gmail.com> wrote:
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 at (no spam) INC ( at (no spam) 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 at (no spam) 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 at (no spam) INC array non progrmatically? |
|
|
| Back to top |
|
|
|
| sisyphus... |
Posted: Fri Sep 04, 2009 2:04 am |
|
|
|
Guest
|
On Sep 4, 6:48 am, Pradeep <bubunia2000s... at (no spam) gmail.com> wrote:
Quote: On Sep 3, 5:19 pm, sisyphus <sisyphus... at (no spam) gmail.com> wrote:
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 |
|
|
| Back to top |
|
|
|
| Pradeep... |
Posted: Fri Sep 04, 2009 12:17 pm |
|
|
|
Guest
|
On Sep 4, 7:04 am, sisyphus <sisyphus... at (no spam) gmail.com> wrote:
Quote: On Sep 4, 6:48 am, Pradeep <bubunia2000s... at (no spam) gmail.com> wrote:
On Sep 3, 5:19 pm, sisyphus <sisyphus... at (no spam) gmail.com> wrote:
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. |
|
|
| Back to top |
|
|
|
|