Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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/readline.pm 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 readline.pm, 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,


In reply to getting Log::Log4perl to install on windows strawberry perl by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found