当我尝试使用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
完整的日志文件可以是found at scribd
答案 0 :(得分:3)
你不会发现这种安慰,但几周之前我在Perlbrew
下没有安装perl 5.12.2 :(
差异可能是:
我仍在使用旧版Perlbrew
(0.03)。
我使用这些步骤直接安装Perlbrew
而不是CPAN
(对不起,如果重复之前的建议):
curl -LO https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew
chmod +x perlbrew
./perlbrew install
过去几周CPANPLUS
发生了变化(虽然我看不到任何内容)
CPANPLUS
有一些旧的错误,在某些条件下可能不适合perlbrew
或者您的环境?:https://rt.cpan.org/Public/Dist/Display.html?Name=CPANPLUS。
所以可能根本不是Perlbrew
问题。如果您尝试直接编译Perl 5.12.2,您可能会发现同样的测试失败。要在本地编译,请参阅source tar ball中的常规和任何特定README文件。打开焦油球后的一般步骤是:
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
答案 1 :(得分:2)
CPANPLUS测试失败,因此perl无法安装。您可以强制它安装然后尝试重新安装CPANPLUS。错误输出的最后几行告诉您确切要做什么。如果您之前没有安装过自己的perl,我建议不要使用perlbrew。它是一个不错的自动化工具,但你不应该用它来避免学习它自动化的东西。它基本上运行了一些简单的行来安装perl然后它移动一些符号链接。
请不要将scribd用于此类事情。永久捕获信息的相关部分,以便随时提出您的问题。