Perl 无法在windows 10中使用cpan安装Imager::File::PNG

Perl 无法在windows 10中使用cpan安装Imager::File::PNG,perl,cpan,libpng,Perl,Cpan,Libpng,我需要安装WWW::Mechanize::Chrome,唯一需要安装的依赖项是Imager::File::PNG。 我无法安装Imager::File::PNG。我已经下载了。但不知道如何将其编译成lib文件并继续安装Imager::File:PNG。有没有人有libpng的lib,或者帮我制作libpng > cpan Imager::File::PNG

我需要安装WWW::Mechanize::Chrome,唯一需要安装的依赖项是Imager::File::PNG。 我无法安装Imager::File::PNG。我已经下载了。但不知道如何将其编译成lib文件并继续安装Imager::File:PNG。有没有人有libpng的lib,或者帮我制作libpng

>  cpan Imager::File::PNG                                                                                               
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
CPAN: Term::ANSIColor loaded ok (v4.02)
CPAN: Storable loaded ok (v2.45)
Reading 'C:\Perl64\cpan\Metadata'
  Database was generated on Fri, 26 Jun 2020 05:17:03 GMT
Running install for module 'Imager::File::PNG'
CPAN: Digest::SHA loaded ok (v5.85)
CPAN: Compress::Zlib loaded ok (v2.063)
Checksum for C:\Perl64\cpan\sources\authors\id\T\TO\TONYC\Imager-File-PNG-0.95.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.96)
Imager-File-PNG-0.95/
Imager-File-PNG-0.95/META.yml
Imager-File-PNG-0.95/README
Imager-File-PNG-0.95/impng.h
Imager-File-PNG-0.95/MANIFEST
Imager-File-PNG-0.95/impng.c
Imager-File-PNG-0.95/PNG.xs
Imager-File-PNG-0.95/t/
Imager-File-PNG-0.95/t/00load.t
Imager-File-PNG-0.95/t/10png.t
Imager-File-PNG-0.95/Changes
Imager-File-PNG-0.95/Makefile.PL
Imager-File-PNG-0.95/MANIFEST.SKIP
Imager-File-PNG-0.95/PNG.pm
Imager-File-PNG-0.95/testimg/
Imager-File-PNG-0.95/testimg/cover.png
Imager-File-PNG-0.95/testimg/rgb16.png
Imager-File-PNG-0.95/testimg/cover16.png
Imager-File-PNG-0.95/testimg/bipalette.png
Imager-File-PNG-0.95/testimg/coveri.png
Imager-File-PNG-0.95/testimg/coverpal.png
Imager-File-PNG-0.95/testimg/coverpali.png
Imager-File-PNG-0.95/testimg/bilevel.png
Imager-File-PNG-0.95/testimg/gray.png
Imager-File-PNG-0.95/testimg/graya.png
Imager-File-PNG-0.95/testimg/paltrans.png
Imager-File-PNG-0.95/testimg/cover16i.png
Imager-File-PNG-0.95/testimg/palette.png
Imager-File-PNG-0.95/testimg/comment.png
Imager-File-PNG-0.95/testimg/rgb8.png
Imager-File-PNG-0.95/testimg/pal.png
Imager-File-PNG-0.95/testimg/rgb8i.png
Imager-File-PNG-0.95/testimg/palette_out.png
Imager-File-PNG-0.95/testimg/badcrc.png
Imager-File-PNG-0.95/META.json
Imager-File-PNG-0.95/inc/
Imager-File-PNG-0.95/inc/Devel/
Imager-File-PNG-0.95/inc/Devel/CheckLib.pm
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML::XS loaded ok (v0.62)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v1.4417)
CPAN: CPAN::Meta loaded ok (v2.150005)
CPAN: Module::CoreList loaded ok (v3.03)
Configuring T/TO/TONYC/Imager-File-PNG-0.95.tar.gz with Makefile.PL
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
PNG: building independently
PNG: Generic: includes found - libraries not found
PNG: v1.6: includes found - libraries not found
PNG: v1.5: includes not found - libraries not found
PNG: v1.4: includes not found - libraries not found
PNG: v1.2: includes not found - libraries not found
PNG: v1.0: includes not found - libraries not found
PNG: base (+libz): includes found - libraries not found
PNG: v1.6 (+libz): includes found - libraries not found
PNG: v1.5 (+libz): includes not found - libraries not found
PNG: v1.4 (+libz): includes not found - libraries not found
PNG: v1.2 (+libz): includes not found - libraries not found
PNG: v1.0 (+libz): includes not found - libraries not found
PNG: Checking if the compiler can find them on its own
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Warning (mostly harmless): No library found for -lmsvcrt
PNG: Test code failed: Can't link/include 'png.h', 'stdio.h', 'png'
OS unsupported: PNG libraries or headers not found
Warning: No success on command[C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site]
  TONYC/Imager-File-PNG-0.95.tar.gz
  C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK

提前谢谢

你在用Cygwin吗?不太好。但是如果有可能用它来安装库,我将安装itI。我只是尝试在没有Cygwin的情况下使用草莓Perl版本5.30安装它,它在这里安装得很好。我记不起我已经安装了libpng,但是我收到了一条消息
PNG:found via pkg config libpng
。不管怎样,你能帮助我如何使用Cygwin来安装libpng吗?我想
libpng.a
是草莓Perl附带的。我在这里找到了文件:
C:\草莓\C\libpng.a
。你能先试试草莓Perl吗?你用的是Cygwin吗?不是。但是如果有可能用它来安装库,我将安装itI。我只是尝试在没有Cygwin的情况下使用草莓Perl版本5.30安装它,它在这里安装得很好。我记不起我已经安装了libpng,但是我收到了一条消息
PNG:found via pkg config libpng
。不管怎样,你能帮助我如何使用Cygwin来安装libpng吗?我想
libpng.a
是草莓Perl附带的。我在这里找到了文件:
C:\草莓\C\libpng.a
。你能先试试草莓Perl吗?