Why am I getting this module error: "Cannot find Error.pm in @INC"?

I tried to run:

perl -e "use Error;" 

from cmd on Windows 7. (perl 5.12 installed on the system is active) and I get an error

Cannot find Error.pm in @INC (@INC contains: C: / Perl64 / site / lib C: / Perl64 / lib)

I manually searched and found Error.pmin C:/Perl64/lib/CPANPLUS.

Does anyone have an idea what is going on here?

+3
source share
3 answers

You need to install the Error module , which can be found in CPAN. But remember this warning:

"" - - , . , , . . " " .

+4

lib/CPANPLUS/Error.pm - "CPANPLUS:: ". CPANPLUS. "", . "ppm install Error". , Try:: Tiny TryCatch. , .

+1

PERL5LIB @INC

PERL5LIB="C:/Perl64/lib/CPANPLUS"

, env windows ( .)

@INC perl -V

-2
source

Source: https://habr.com/ru/post/1755855/


All Articles