8

I've just installed Perl 5.26 x64 under Windows 10.

The command below causes an error:

perl -MCPAN -e shell

Error is: Can't located Win32::Console

Please help

craigcaulfield
  • 3,381
  • 10
  • 32
  • 40
user3424840
  • 207
  • 2
  • 3
  • 8

2 Answers2

7

Had same problem, i installed strawberry perl and worked perfectly

lor3nz
  • 71
  • 1
  • 2
  • 1
    This is because, strawberry perl already contains Win32 module in it. Download link - http://strawberryperl.com/releases.html – Rohit Gaikwad May 28 '20 at 13:46
0

Had similar problem, solved by commenting lines 395-413 with # in
c:\Perl64\site\lib\ActivePerl\Config.pm
They are lines in function _warn under line
# Prevent calling Win32::Console::DESTROY on a STDOUT handle
I have found this solution on https://www.programmersought.com/article/93215566461/

user14128219
  • 71
  • 1
  • 3