Aldebaran has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I'm trying to juggle my perl development issues with the 3 platforms I use: windows 10, linux, and termux on android. Each has its challenges. The one that has ground me to a halt right now is on my windows machine. When I select cpan from the strawberry perl entries in the startup menu, I get:

Loading internal logger. Log::Log4perl recommended for better logging Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call + didn't work. The COLUMNS and LINES environment variables didn't work +. at C:\Strawberry\perl\vendor\lib/Term/ReadLine/ line 410 +. There seems to be running another CPAN process (pid 3728). Contacting +... Other job not responding. Shall I overwrite the lockfile 'C:\STRAWB~1\ +cpan\.lock'? (Y/n) [y] y cpan shell -- CPAN exploration and modules installation (v2.26) Enter 'h' for help. cpan>

I don't know why I'm being prompted about the lockfile, as I don't think there is an antecedent cpan process running, but then I also don't believe STDOUT is lying to me. When I try to install Log::Log4perl , I get:

t/026FileApp.t ............ 1/27 # Failed test 'header_text' # at t/026FileApp.t line 459. # got: 'This is a nice header. # This is a nice header. # DEBUG - waah! # ' # expected: 'This is a nice header. # DEBUG - waah! # ' # Looks like you failed 1 test of 27. t/026FileApp.t ............ Dubious, test returned 1 (wstat 256, 0x100 +)

When I further investigate the original cpan error in the given location of, I find:

sub get_window_size { my $sig = shift; local($., $@, $!, $^E, $?); # Preserve $! etc; the rest for + hooks my ($num_cols,$num_rows); if (defined $term_readkey) {

Although the line number is 410, this seems to be some of first executable code, so it looks like this fails quickly.

Not being able to install this module is stopping me from being able to install WWW::Mechanize::Chrome, which has it as a prerequisite. Also, I just installed Excel::Writer::XLSX using the same toolchain to prove that I have write privileges.

Anyways, fishing for tips and tricks,