我在尝试使用cpan来安装File :: Write :: Rotate时看到了这个错误。它总是失败,它试图安装的最后一件事是Proc :: PID :: File。我尝试运行cpan Proc :: PID :: File但得到了相同的结果。我不能测试我的脚本,直到我弄明白了。
有谁能告诉我这个模块的最新进展?我正在使用Strawberry Perl 5.22和Windows 7.这是cpan Proc :: PID :: File
的输出Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.204)
Database was generated on Wed, 24 Aug 2016 20:07:16 GMT
Running install for module 'Proc::PID::File'
CPAN: Digest::SHA loaded ok (v5.95)
CPAN: Compress::Zlib loaded ok (v2.068)
Checksum for C:\STRAWB~1\cpan\sources\authors\id\D\DM\DMITRI\Proc-PID-File-1.28.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.04)
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML::XS loaded ok (v0.59)
CPAN: CPAN::Meta::Requirements loaded ok (v2.133)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.150001)
CPAN: Module::CoreList loaded ok (v5.20150520)
Configuring D/DM/DMITRI/Proc-PID-File-1.28.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Proc::PID::File
Writing MYMETA.yml and MYMETA.json
DMITRI/Proc-PID-File-1.28.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for D/DM/DMITRI/Proc-PID-File-1.28.tar.gz
cp File.pm blib\lib\Proc\PID\File.pm
DMITRI/Proc-PID-File-1.28.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\Strawberry\perl\bin\perl.exe" "-Iblib\lib" "-Iblib\arch" test.pl
1..12
Use of uninitialized value $fh in pattern match (m//) at blib/lib/Proc/PID/File.
pm line 286.
ok 1 - simple: thread safe
The system cannot find the path specified.
'cat' is not recognized as an internal or external command,
operable program or batch file.
Use of uninitialized value $fh in pattern match (m//) at blib/lib/Proc/PID/File.
pm line 286.
Use of uninitialized value $fh in pattern match (m//) at blib/lib/Proc/PID/File.
pm line 286.
not ok 2 - simple: running
# Failed test 'simple: running'
# at test.pl line 77.
ok 3 - SKIPPED - simple: verified (real)
ok 4 - SKIPPED - simple: verified (false)
Can't kill a non-numeric process ID at test.pl line 101.
# Looks like you planned 12 tests but ran 4.
# Looks like you failed 1 test of 4 run.
# Looks like your test exited with 1 just after 4.
dmake.exe: Error code 129, while making 'test_dynamic'
DMITRI/Proc-PID-File-1.28.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports DMITRI/Proc-PID-File-1.28.tar.gz
Stopping: 'install' failed for 'Proc::PID::File'.
我已经安装了活动的Perl,但已将其删除。
这是来自perl -V 我的perl5(修订版5版本22颠覆0)配置摘要:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.22.0.1 #1 Mon Jun 1 23:58:39 2015 x64'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_
SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing
-mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.9.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678, doubleki
nd=3
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8, longdblk
ind=3
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"'
libpth=C:\STRAWB~1\c\lib C:\STRAWB~1\c\x86_64-w64-mingw32\lib C:\STRAWB~1\c\
lib\gcc\x86_64-w64-mingw32\4.9.2
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm - lversion
-lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl522.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRA
WB~1\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Jun 2 2015 00:03:35
@INC:
C:/Strawberry/perl/site/lib
C:/Strawberry/perl/vendor/lib
C:/Strawberry/perl/lib
.