Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: help debugging why module install is failing

by syphilis (Archbishop)
on Nov 15, 2020 at 22:50 UTC ( [id://11123673]=note: print w/replies, xml ) Need Help??


in reply to help debugging why module install is failing

Is there anything obvious I can do to debug this further other than contacting the author?

The module installs fine on native Windows (Strawberry Perl 5.32.0), where each of those 3 failing tests all pass.
I therefore think the problem is likely to be in the way the Cygwin system operates - so debugging it might be quite involved.

Also, the warnings issued by t/42function.t don't appear on Strawberry Perl, but there are 4 tests in that script that are skipped on Strawberry Perl (due to fork() being unavailable) that would be run on Cygwin. So maybe that's where the difference is.

Paul Evans is still fairly active - so definitely worth contacting.
I think it's best to file a bug report that provides the full output of the test suite, just as you've provided here.

You can, of course, simply force install the module, despite its failing tests - but I'm guessing you already knew that.
I recommend that you consider switching to Strawberry Perl unless you need the Unix emulation.
And, if you do need Unix emulation, then you could alternatively try MSYS2. You might (I don't know) find that it doesn't suffer the bugginess that you've hit with Cygwin.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: help debugging why module install is failing
by Special_K (Monk) on Nov 19, 2020 at 23:11 UTC
    > I recommend that you consider switching to Strawberry Perl unless you need the Unix emulation.

    I originally learned Perl in a Linux environment and have been using Cygwin under Windows 10 just for the sake of familiarity, but maybe I'll try Strawberry Perl since there's no fundamental reason why I need Linux commands to write Perl scripts (although the shell commands seem more intuitive to me than those of Windows). Ultimately all I'm trying to do is install WWW::Mechanize::Chrome and IO::Async::Listener is a prerequisite.

    > And, if you do need Unix emulation, then you could alternatively try MSYS2. You might (I don't know) find that it doesn't suffer the bugginess that you've hit with Cygwin.

    I already have MSYS2 installed so maybe I'll give that a try as well.

      If you are familiar with linux, you could try WSL (Windows Subsystem for Linux). I use it only very occasionaly, because I have it only on "my" machine, but see Perl on Windows 10.
Re^2: help debugging why module install is failing
by Special_K (Monk) on Jan 03, 2021 at 23:21 UTC
    > The module installs fine on native Windows (Strawberry Perl 5.32.0), where each of those 3 failing tests all pass.

    I tried installing the module under Strawberry Perl but the t\50resolver.t test still fails with the exact same error. If you get a chance could you please take a look at the new thread I made: help installing WWW::Mechanize::Chrome in Strawberry Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-28 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found