【问题标题】:SIGBREAK during tests while installing IPC::Run on Windows 10 x64在 Windows 10 x64 上安装 IPC::Run 测试期间的 SIGBREAK
【发布时间】:2016-12-02 04:19:47
【问题描述】:

我无法安装IPC::Run 在 Windows 10 x64 上:

cpan> install IPC::Run
Running install for module 'IPC::Run'
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/id/T/TO/TODDR/CHECKSUMS
Checksum for E:\Perl\cpan\sources\authors\id\T\TO\TODDR\IPC-Run-0.94.tar.gz ok
IPC-Run-0.94/
IPC-Run-0.94/abuse/
IPC-Run-0.94/Changes
IPC-Run-0.94/eg/
IPC-Run-0.94/lib/
IPC-Run-0.94/LICENSE
IPC-Run-0.94/Makefile.PL
IPC-Run-0.94/MANIFEST
IPC-Run-0.94/META.json
IPC-Run-0.94/META.yml
IPC-Run-0.94/README
IPC-Run-0.94/t/
IPC-Run-0.94/TODO
IPC-Run-0.94/t/97_meta.t
IPC-Run-0.94/t/98_pod.t
IPC-Run-0.94/t/98_pod_coverage.t
IPC-Run-0.94/t/99_perl_minimum_version.t
IPC-Run-0.94/t/adopt.t
IPC-Run-0.94/t/binmode.t
IPC-Run-0.94/t/bogus.t
IPC-Run-0.94/t/filter.t
IPC-Run-0.94/t/harness.t
IPC-Run-0.94/t/io.t
IPC-Run-0.94/t/kill_kill.t
IPC-Run-0.94/t/lib/
IPC-Run-0.94/t/parallel.t
IPC-Run-0.94/t/pty.t
IPC-Run-0.94/t/pump.t
IPC-Run-0.94/t/run.t
IPC-Run-0.94/t/signal.t
IPC-Run-0.94/t/timeout.t
IPC-Run-0.94/t/timer.t
IPC-Run-0.94/t/win32_compile.t
IPC-Run-0.94/t/windows_search_path.t
IPC-Run-0.94/t/lib/Test.pm
IPC-Run-0.94/lib/IPC/
IPC-Run-0.94/lib/IPC/Run/
IPC-Run-0.94/lib/IPC/Run.pm
IPC-Run-0.94/lib/IPC/Run/Debug.pm
IPC-Run-0.94/lib/IPC/Run/IO.pm
IPC-Run-0.94/lib/IPC/Run/Timer.pm
IPC-Run-0.94/lib/IPC/Run/Win32Helper.pm
IPC-Run-0.94/lib/IPC/Run/Win32IO.pm
IPC-Run-0.94/lib/IPC/Run/Win32Pump.pm
IPC-Run-0.94/eg/factorial
IPC-Run-0.94/eg/factorial_pipe
IPC-Run-0.94/eg/factorial_scalar
IPC-Run-0.94/eg/run_daemon
IPC-Run-0.94/eg/runsh
IPC-Run-0.94/eg/runsu
IPC-Run-0.94/eg/synopsis_scripting
IPC-Run-0.94/abuse/blocking_debug_with_sub_coprocess
IPC-Run-0.94/abuse/blocking_writes
IPC-Run-0.94/abuse/broken_pipe_on_bad_executable_name
IPC-Run-0.94/abuse/timers
Configuring T/TO/TODDR/IPC-Run-0.94.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for IPC::Run
Writing MYMETA.yml and MYMETA.json
  TODDR/IPC-Run-0.94.tar.gz
  E:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TO/TODDR/IPC-Run-0.94.tar.gz
cp lib/IPC/Run/Win32IO.pm blib\lib\IPC\Run\Win32IO.pm
cp lib/IPC/Run/Win32Helper.pm blib\lib\IPC\Run\Win32Helper.pm
cp lib/IPC/Run/Debug.pm blib\lib\IPC\Run\Debug.pm
cp lib/IPC/Run/Win32Pump.pm blib\lib\IPC\Run\Win32Pump.pm
cp lib/IPC/Run.pm blib\lib\IPC\Run.pm
cp lib/IPC/Run/IO.pm blib\lib\IPC\Run\IO.pm
cp lib/IPC/Run/Timer.pm blib\lib\IPC\Run\Timer.pm
  TODDR/IPC-Run-0.94.tar.gz
  E:\BIOINF~1\perl\site\bin\dmake.exe -- OK
Running make test
E:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/97_meta.t .................. skipped: Author tests not required for installation
t/98_pod.t ................... skipped: Author tests not required for installation
t/98_pod_coverage.t .......... skipped: Author tests not required for installation
t/99_perl_minimum_version.t .. skipped: Author tests not required for installation
t/adopt.t .................... skipped: adopt not implemented yet
t/binmode.t .................. ok
t/bogus.t .................... ok
t/filter.t ................... ok
t/harness.t .................. ok
t/io.t ....................... ok
t/kill_kill.t ................ skipped: Temporarily ignoring test failure on Win32
t/parallel.t ................. skipped: Parallel tests are dangerous on MSWin32
t/pty.t ...................... skipped: IO::Pty not installed
t/pump.t ..................... ok
t/run.t ...................... ok
t/signal.t ................... skipped: Skipping on Win32
t/timeout.t .................. 9/26 Terminating on signal SIGBREAK(21)
Terminating on signal SIGBREAK(21)
Terminating on signal SIGBREAK(21)
Terminating on signal SIGBREAK(21)
Terminating on signal SIGBREAK(21)
Terminating on signal SIGBREAK(21)

然后它会提示我...

Terminate batch job (Y/N)? N

...之后它(显然)终止。看起来我在安装过程中多次按下 Ctrl-Break 但我没有。该行为是可重复的。有人知道发生了什么吗?

【问题讨论】:

  • 在 Windows 8.1 x64 上遇到同样的问题。

标签: perl timeout installation perl-ipc-run


【解决方案1】:

这是一个错误,有an outstanding ticket解决它

我建议你只用强制安装

cpan> force install IPC::Run

这将导致它运行测试但忽略结果并继续完成安装

或者,您可以按照perlmodinstall 中的说明手动运行安装,但跳过测试阶段

cpan> look IPC::Run
C:\strawberry\cpan\build\IPC-Run-0.94-0>perl Makefile.PL
C:\strawberry\cpan\build\IPC-Run-0.94-0>dmake
C:\strawberry\cpan\build\IPC-Run-0.94-0>dmake install

这是假设您正在运行 Strawberry Perl。您可能需要为 ActivePerl 使用不同的 ma​​ke 工具

【讨论】:

  • 是的,我也注意到了那个错误报告。但是我仍然无法使用“强制安装”来安装它。它显示了同样的东西。
  • 非常感谢。我正在使用 ActivePerl,它有效。之前尝试过手动安装,但当时没有错过dmake test。我对这些很陌生,所以我想知道在这个过程中dmake test 是必要的吗?
  • @c11cc:这不是安装模块的必要部分,但只是将模块放到系统上而不运行它的测试以确保它可以工作是愚蠢的。在这种情况下,无论如何您已经运行了多次测试,而失败的测试 timeout.t 位于套件的最后三个测试中,因此该模块无论如何都通过了大部分测试。 force install 会有效地做同样的事情,但在这种情况下,测试对整个安装过程来说是致命的,所以最后的install 步骤从未到达。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-06-25
  • 1970-01-01
  • 2017-07-08
  • 2019-09-08
  • 2012-05-03
  • 1970-01-01
相关资源
最近更新 更多