为什么安装 perl-5.12.2 时 perlbrew 失败?

发布于 2024-09-19 22:54:42 字数 2886 浏览 7 评论 0原文

当我尝试使用 perlbrew 安装 Perl 5.12.2 时,最后出现错误,因为 CPANPLUS 测试失败。

         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 中找到

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

The full log file can be found at scribd

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

合约呢 2024-09-26 22:54:42

你不会觉得这令人安慰,但我在 < 下安装 perl 5.12.2 没有遇到任何问题code>Perlbrew 就在几周前:(

差异可能是:

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

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

    curl -LO https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew
    chmod +x perlbrew
    ./perlbrew 安装
    
  • CPANPLUS 在过去几周内(虽然我看不到任何东西)

  • CPANPLUS 有一些旧错误,在某些情况下可能无法很好地发挥作用perlbrew 或者您的环境?:https: //rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS

因此可能根本不是 Perlbrew 问题。如果您尝试直接编译 Perl 5.12.2,您可能会发现遇到同样的测试失败。要在本地编译,请查阅源 tar 球中的一般和任何特定自述文件。解压焦油球后的一般步骤是:

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

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 :(

The differences maybe:

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

  • 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
    
  • Something changed on CPANPLUS in last couple of weeks (I can't see anything though)

  • 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.

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

Anyhow, CPANPLUS is another CPAN shell and isn't essential. So if thats the only tests failing on the install then you could ignore them and force an install. Which going back to perlbrew is:

perlbrew install perl-5.12.2 -f
眸中客 2024-09-26 22:54:42

CPANPLUS 测试失败,因此 perl 无法安装。您可以强制安装,然后尝试重新安装 CPANPLUS。错误输出的最后几行告诉您具体要做什么。如果您之前没有安装过自己的 perl,我建议您不要使用 perlbrew。它是一个足够不错的自动化工具,但您不应该使用它来避免了解它为您自动化的内容。它基本上运行几行简单的代码来安装 perl,然后它会移动一些符号链接。

请不要使用 scribd 来做这种事情。在此永久捕获信息的相关部分,以便始终与您的问题相关。

The tests for CPANPLUS failed, so perl won't install. You can force it to install then try reinstalling CPANPLUS. The last lines of the error output tell you exactly what to do. If you haven't installed your own perl before, I recommend against using perlbrew. It's a decent enough automation tool, but you shouldn't use it to avoid learning what it is automating for you. It basically runs a couple of simple lines to install perl then it moves around some symlinks.

Please don't use scribd for this sort of thing. Capture the relevant parts of the information here permanently so it is always with your question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文