http://qs1969.pair.com?node_id=11134428


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

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.

Replies are listed 'Best First'.
Re^3: Unable to install module IO::Async::Loop on windows 10 strawberry Perl
by vr (Curate) on Jun 29, 2021 at 10:14 UTC

    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.
      Hello, i try since the last two days to get IO:Async running. I tried with Strawberry 5.32.x and now i tried with 5.28.2 on a fresh windows 10 and fresh Strawberry system. Nothing done before. The first step is always cpan IO::Async It fails always on the same point:
      Configuring P/PE/PEVANS/IO-Async-0.802.tar.gz with Build.PL Checking prerequisites... test_requires: ! Test::Future::IO::Impl is not installed ! Test::Metrics::Any is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installatio +n .... Running Build install for PEVANS/Future-IO-0.13.tar.gz Building Future-IO Installing C:\STRAWB~1\perl\site\lib\Future\IO.pm Installing C:\STRAWB~1\perl\site\lib\Future\IO\ImplBase.pm Installing C:\STRAWB~1\perl\site\lib\Future\IO\System.pm Installing C:\STRAWB~1\perl\site\lib\Test\Future\IO\Impl.pm PEVANS/Future-IO-0.13.tar.gz C:\Strawberry\perl\bin\perl.exe ./Build install --uninst 1 -- OK Stopping: 'install' failed for 'Test::Future::IO::Impl'.
      I tried already cpan -if IO:ASYNC which fails on the same point I update socket via  cpan Socket Test::Future::Io seams to be required by IO:Async but not possible to compile. I tried cpan -f IO:Async too, but it stopped with the same result:
      cpan -f IO:Async Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.217) Database was generated on Wed, 22 Feb 2023 07:47:44 GMT CPAN: Module::CoreList loaded ok (v5.20190420) Running install for module 'IO::Async' ... t\70future-io.t .............. 1/? Nothing was ready after 10 second w +ait; called at t\70future-io.t line 61 # Tests were run but no plan was declared and done_testing() was not s +een. # Looks like your test exited with 255 just after 3. # Seeded srand with seed '20230222' from local date. t\70future-io.t .............. Dubious, test returned 255 (wstat 65280 +, 0xff00) All 3 subtests passed t\99pod.t .................... ok Test Summary Report ------------------- t\70future-io.t (Wstat: 65280 Tests: 3 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=64, Tests=1272, 127 wallclock secs ( 0.27 usr + 0.17 sys = 0.4 +4 CPU) Result: FAIL Failed 1/64 test programs. 0/1272 subtests failed. PEVANS/IO-Async-0.802.tar.gz C:\Strawberry\perl\bin\perl.exe ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports PEVANS/IO-Async-0.802.tar.gz Running Build install for PEVANS/IO-Async-0.802.tar.gz Building IO-Async PEVANS/IO-Async-0.802.tar.gz C:\Strawberry\perl\bin\perl.exe ./Build install --uninst 1 -- OK Stopping: 'install' failed for 'IO::Async'.
      By any unknown reason now it seams to be installed. If i try to install:
      >cpan IO:Async Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.217) Database was generated on Wed, 22 Feb 2023 07:47:44 GMT CPAN: Module::CoreList loaded ok (v5.20190420) IO::Async is up to date (0.802).
      What can I do installed correctly? Or is it not possible? thanks regards Carsten