为什么在安装 perl-5.12.2 时 perlbrew 会失败? [英] Why does perlbrew fail while installing perl-5.12.2?

查看:83
本文介绍了为什么在安装 perl-5.12.2 时 perlbrew 会失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 perlbrew 安装 Perl 5.12.2 时,由于 CPANPLUS 测试失败,最后出现错误.

When I try to install Perl 5.12.2 with perlbrew, I get an error at the end because the CPANPLUS tests fail.

         Making utilities
make[1]: Entering directory `/home/dave/perl5/perlbrew/build/perl-5.12.2/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/dave/perl5/perlbrew/build/perl-5.12.2/utils'
cd t && (rm -f perl; /bin/ln -s ../perl perl)
./runtests choose
t/base/cond....................................................ok
t/base/if......................................................ok

#### MISSING PART (Dave)

cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils....................ok
cpan/CPANPLUS/t/01_CPANPLUS-Configure..........................ok
cpan/CPANPLUS/t/02_CPANPLUS-Internals..........................ok
cpan/CPANPLUS/t/03_CPANPLUS-Internals-Source...................#   Failed test '   Timestamp on sourcefile updated'
#   at t/03_CPANPLUS-Internals-Source.t line 204.
#     '1284895103'
#         >=
#     '1284905946'
FAILED at test 40
cpan/CPANPLUS/t/04_CPANPLUS-Module.............................ok
cpan/CPANPLUS/t/05_CPANPLUS-Internals-Fetch....................ok

#### MISSING PART (Dave)

cpan/ExtUtils-CBuilder/t/02-link...............................ok
cpan/ExtUtils-CBuilder/t/03-cplusplus..........................ok
cpan/ExtUtils-Command/t/cp.....................................#   Failed test 'cp updated mtime'
#   at t/cp.t line 26.
#     '10844'
#         <=
#     '1'
# Looks like you failed 1 test of 1.
FAILED at test 1
cpan/ExtUtils-Command/t/eu_command.............................ok
cpan/ExtUtils-Constant/t/Constant..............................ok

#### MISSING PART (Dave)

t/porting/podcheck.............................................ok
t/porting/test_bootstrap.......................................ok
Failed 2 tests out of 1695, 99.88% okay.
    ../cpan/CPANPLUS/t/03_CPANPLUS-Internals-Source.t
    ../cpan/ExtUtils-Command/t/cp.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=2.33  s=1.00  cu=243.43  cs=35.83  scripts=1695  tests=350144
make: *** [test] Error 1

完整的日志文件可以在在 scribd 找到

推荐答案

你不会觉得这很令人欣慰,但我在 Perlbrew 就在几周前 :(

You're not going to find this comforting but I had no hitches installing perl 5.12.2 under Perlbrew just a couple of weeks ago :(

差异可能:

  • 我仍在使用旧版本的 Perlbrew (0.03).

  • I'm still using old version of Perlbrew (0.03).

我直接安装了 Perlbrew而不是通过 CPAN 使用这些步骤(抱歉,如果重复之前的建议):

I installed Perlbrew direct and not via CPAN by using these steps (sorry if repeating advice from before):

curl -LO https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew
chmod +x perlbrew
./perlbrew install

  • 最后在 CPANPLUS 上发生了一些变化几个星期(虽然我什么都看不到)

  • Something changed on CPANPLUS in last couple of weeks (I can't see anything though)

    CPANPLUS 有一些旧的错误在某些情况下,perlbrew 或您的环境可能无法正常使用?:https://rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS.

    CPANPLUS has some old bugs which may under certain conditions not play well with perlbrew or perhaps your environment?: https://rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS.

    所以可能不是 Perlbrew 的问题根本.如果您尝试直接编译 Perl 5.12.2,您可能会发现同样的测试失败.要在本地编译,请查阅 源 tar ball 中的一般和任何特定自述文件.tar ball 解包后的一般步骤是:

    So may not be a Perlbrew issue at all. You may find you hit same test failure if you try and compile Perl 5.12.2 directly. To compile locally please consult general and any specific README file in the source tar ball. The general steps once tar ball is unpacked are:

    sh Configure -Dprefix=/home/your_username/your_local_dir_for_perl-5.12.2
    make
    make test
    make install
    


    无论如何,CPANPLUS 是另一个 CPAN shell,不是必需的.因此,如果这是安装时唯一失败的测试,那么您可以忽略它们并强制安装.回到 perlbrew 是:

    perlbrew install perl-5.12.2 -f
    

    这篇关于为什么在安装 perl-5.12.2 时 perlbrew 会失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆