为什么安装 perl-5.12.2 时 perlbrew 失败?
当我尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不会觉得这令人安慰,但我在 < 下安装 perl 5.12.2 没有遇到任何问题code>Perlbrew 就在几周前:(
差异可能是:
我仍在使用旧版本的
Perlbrew
(0.03)。我安装了
Perlbrew
直接使用这些步骤,而不是通过CPAN
(抱歉如果重复之前的建议):CPANPLUS
在过去几周内(虽然我看不到任何东西)CPANPLUS
有一些旧错误,在某些情况下可能无法很好地发挥作用perlbrew
或者您的环境?:https: //rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS。因此可能根本不是
Perlbrew
问题。如果您尝试直接编译 Perl 5.12.2,您可能会发现遇到同样的测试失败。要在本地编译,请查阅源 tar 球中的一般和任何特定自述文件。解压焦油球后的一般步骤是:无论如何,
CPANPLUS
是另一个 CPAN shell,并不是必需的。因此,如果这是安装失败的唯一测试,那么您可以忽略它们并强制安装。回到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 :(The differences maybe:
I'm still using old version of
Perlbrew
(0.03).I installed
Perlbrew
direct and not viaCPAN
by using these steps (sorry if repeating advice from before):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 withperlbrew
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: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 toperlbrew
is: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.