Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Unable to install module IO::Async::Loop on windows 10 strawberry Perl

by Anonymous Monk
on Jun 29, 2021 at 01:28 UTC ( #11134414=note: print w/replies, xml ) Need Help??


in reply to Unable to install module IO::Async::Loop on windows 10 strawberry Perl

Your issue is caused by outdated Socket.pm. Update it by running cpan Socket or cpanm Socket

Replies are listed 'Best First'.
Re^2: Unable to install module IO::Async::Loop on windows 10 strawberry Perl
by bliako (Monsignor) on Jun 29, 2021 at 07:13 UTC

    Add the force-reinstall (-f) flag to do it unconditionally.

Re^2: Unable to install module IO::Async::Loop on windows 10 strawberry Perl
by programmingzeal (Acolyte) on Jun 29, 2021 at 08:15 UTC
    I tried upgrading Socket by cpan> install Socket command. It did upgrade Socket sorry I forgot to capture console output. But invain, the required module is not installed.

      I can confirm, that, using "fresh/clean" Strawberry Perl 5.28.0.1 -- i.e. your version -- the installation of IO::Async fails. That's not the case with Strawberry Perl 5.28.2.1 though, where IO::Async installs OK.

      To follow AM's advice, upgrading Socket issuing cpanm Socket under 5.28.0.1 did fix the issue.

      I see, however, that

      t\70future-io.t .............. skipped: Future::IO is not available

      in my case, but not in yours. How come this distribution was installed at your side? It's not required for IO::Async (nor Future, etc.) and its pod says it can be problematic with Win32. I'd suggest to uninstall it, or at least to backup/rename ImplBase.pm, to allow "clean" (i.e. unenforced) IO::Async installation.

        It worked. Thanks!!! Actually when I was initially installing one of the WebSocket modules, the module Future::IO was marked as a dependency which was not being resolved by CPAN installation process. I manually installed Future::IO. Upon your advice I uninstalled Future::IO via cpanm and then installed IO::Async::Loop which worked.

        So it comes down to four things: First, Socket was to be upgraded. Second, Future::IO was unnecessary installation. Third, no bug in tests. Fourth, no problem with Perl distribution and windows 10 platform. :)

        It worked Thanks!!!. Actually I installed manually the Future::IO module as it was marked as a dependency of a websocket module and was not being resolved by CPAN process. I uninstalled it via CPANM and then reinstalled IO::Async::Loop which worked.

        So it comes down to four things:

        1. Socket wa sto be upgraded.
        2. Future::IO was unnecessary.
        3. No bug in tests plans.
        4. No problem with Perl distribution and windows platform.
        Probably force installed also did the trick.
Re^2: Unable to install module IO::Async::Loop on windows 10 strawberry Perl
by programmingzeal (Acolyte) on Jun 29, 2021 at 14:54 UTC
    Thanks it did the trick.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-10-23 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?