Subject: | Params::Validate install error |
Date: | Mon, 30 Dec 2019 19:58:15 +0000 |
To: | "bug-params-validate [...] rt.cpan.org" <bug-params-validate [...] rt.cpan.org> |
From: | wen ger <fjpt.com [...] outlook.com> |
Hi,I want install you package Params::Validate,but I don’t know how to solve the problem -> ‘ld.exe: cannot find -lperl530’; my system is windows,command is cpanm Params::Validate,and add –force is not help,hope you can teach me solve this problem.
Errors are shown below:
Show quoted text
______________________________
C:\Users\wenger>cpanm Params::Validate
--> Working on Params::Validate
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-1.29.tar.gz ... OK
Configuring Params-Validate-1.29 ... OK
Building and testing Params-Validate-1.29 ... FAIL
! Installing Params::Validate failed. See C:\Users\wenger\.cpanm\work\1577735160.9132\build.log for details. Retry with --force to force install it.
_______________________
The build file:
cpanm (App::cpanminus) 1.7044 on perl 5.030001 built for MSWin32-x64-multi-thread
Work directory is C:\Users\wenger/.cpanm/work/1577734257.11428
You have make D:\PERL\c\bin\gmake.exe
You have LWP 6.42
You have C:\windows\system32\tar.exe, D:\latex\TEXLIVE\bin\win32\gzip.exe and D:\Git\mingw64\bin\bzip2.exe
You have D:\latex\TEXLIVE\bin\win32\unzip.exe
Searching Params::Validate () on cpanmetadb ...
--> Working on Params::Validate
Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-1.29.tar.gz
-> OK
Unpacking Params-Validate-1.29.tar.gz
Entering Params-Validate-1.29
Checking configure dependencies from META.json
Checking if you have ExtUtils::Install 1.46 ... Yes (2.14)
Checking if you have Module::Build 0.38 ... Yes (0.4229)
Configuring Params-Validate-1.29
Running Build.PL
D:/PERL/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lperl530
collect2.exe: error: ld returned 1 exit status
D:/PERL/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lperl530
collect2.exe: error: ld returned 1 exit status
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Params-Validate' version '1.29'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have strict 0 ... Yes (1.11)
Checking if you have Exporter 0 ... Yes (5.73)
Checking if you have lib 0 ... Yes (0.65)
Checking if you have Tie::Array 0 ... Yes (1.07)
Checking if you have base 0 ... Yes (2.27)
Checking if you have File::Temp 0 ... Yes (0.2309)
Checking if you have Tie::Hash 0 ... Yes (1.05)
Checking if you have Carp 0 ... Yes (1.50)
Checking if you have Scalar::Util 1.10 ... Yes (1.53)
Checking if you have Test::Requires 0 ... Yes (0.10)
Checking if you have Test::Fatal 0 ... Yes (0.014)
Checking if you have File::Spec 0 ... Yes (3.78)
Checking if you have vars 0 ... Yes (1.05)
Checking if you have warnings 0 ... Yes (1.44)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.38)
Checking if you have Test::More 0.96 ... Yes (1.302169)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280231)
Checking if you have Module::Build 0.28 ... Yes (0.4229)
Checking if you have XSLoader 0 ... Yes (0.30)
Checking if you have Module::Implementation 0 ... Yes (0.09)
Checking if you have overload 0 ... Yes (1.30)
Checking if you have Devel::Peek 0 ... Yes (1.28)
Building and testing Params-Validate-1.29
Building Params-Validate
gcc -c -I"c" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 "-DVERSION=\"1.29\"" "-DXS_VERSION=\"1.29\"" -I"C:\strawberry\perl\lib\CORE" -I"C:\strawberry\c\include" -o "lib\Params\Validate\XS.o" "lib\Params\Validate\XS.c"
lib\\Params\\Validate\\XS.xs:3:10: fatal error: EXTERN.h: No such file or directory
#include "EXTERN.h"
^~~~~~~~~~
compilation terminated.
error building xs.dll file from 'lib\Params\Validate\XS.c' at D:/PERL/perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 128.
-> FAIL Installing Params::Validate failed. See C:\Users\wenger\.cpanm\work\1577734257.11428\build.log for details. Retry with --force to force install it.
发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
Message body is not shown because it is too large.