【问题标题】:Failed to install Proc::Daemon on Ubuntu 14.10无法在 Ubuntu 14.10 上安装 Proc::Daemon
【发布时间】:2015-10-09 09:37:32
【问题描述】:

我正在尝试在 Ubuntu 14.10 (Perl v5.20) 上安装 Proc::Daemon

$ cpanm Proc::Daemon
--> Working on Proc::Daemon
Fetching http://www.cpan.org/authors/id/A/AK/AKREAL/Proc-Daemon-0.20.tar.gz ... OK
Configuring Proc-Daemon-0.20 ... OK
Building and testing Proc-Daemon-0.20 ... FAIL
! Installing Proc::Daemon failed. See /home/hakon/.cpanm/work/1437385026.3674/build.log for details. Retry with --force to force install it.

完整的日志在这里:http://pastebin.com/8s7ndGaC。 第一个失败的测试似乎是:

#   Failed test ''kid.pl' daemon is still running'
#   at /home/hakon/.cpanm/work/1437385026.3674/Proc-Daemon-0.20/t/02_testmodule.t line 116.
#   Failed test 'stop daemon 'kid.pl''
#   at /home/hakon/.cpanm/work/1437385026.3674/Proc-Daemon-0.20/t/02_testmodule.t line 119.
Use of uninitialized value in numeric eq (==) at /home/hakon/.cpanm/work/1437385026.3674/Proc-Daemon-0.20/t/02_testmodule.t line 129.

测试脚本02_testmodule.t 在这里:https://api.metacpan.org/source/AKREAL/Proc-Daemon-0.20/t/02_testmodule.t(这里是http://pastebin.com/E0n116bA

测试脚本中的第 115-119 行:

$pid = $daemon->Status( "$cwd/pid_1.file" );
                    ok( $pid == $Kid_PID2, "'kid.pl' daemon is still running" );

                    my $stopped = $daemon->Kill_Daemon();
                    ok( $stopped == 1, "stop daemon 'kid.pl'" );

【问题讨论】:

  • 看起来这有 already been reported 作为一个错误。 (为了将来参考,metacpan 在侧边栏上有一个指向“问题”的链接,您应该在任何时候遇到构建失败时检查它。)
  • @ThisSuitIsBlackNot 谢谢!您知道如何将这些信息添加到现有的错误历史记录中吗?
  • 如果您没有登录 rt.cpan.org,您应该可以向bug-Proc-Daemon@rt.cpan.org 发送电子邮件,并在主题行中的某处注明[rt.cpan.org #103130]
  • Proc::Daemon 0.20 版在 Ubuntu 14.10 (perl 5.20.1) 上为我构建,仅使用香草 cpan install Proc::Daemon

标签: perl installation cpan cpanm


【解决方案1】:

This issue was reported 并已在version 0.21 中解决。

【讨论】:

    猜你喜欢
    • 2016-03-11
    • 2016-03-10
    • 2014-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多