http://www.perlmonks.org?node_id=1051282


in reply to Help with Imager::File::PNG

Trying to understand the question...

"I'm editing some source code for a script. The guy who programmed it used Tk::PNG and Imager::File::PNG to make the icons for the items in the inventory, since the games uses .tga files with alpha channels.

My problem is that I downloaded zlib and libpng (the first link on each page, marked "Setup") and installed them to C:\Program Files\GnuWin32. Now when I try to use CPAN in the command prompt, I type "install Imager::File::PNG", and I get this."

... Warning (mostly harmless): No library found for -lpng PNG: building independently PNG: Generic: includes not found - libraries not found PNG: v1.6: includes not 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 not found - libraries not found PNG: v1.6 (+libz): includes not 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
OS unsupported: PNG libraries or headers not found
PNG: Test code failed: Can't link/include 'png.h', 'stdio.h', 'png' Warning: No success on command[C:\Perl-5.16\bin\perl.exe Makefile.PL] TONYC/Imager-File-PNG-0.89.tar.gz C:\Perl-5.16\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test. Could not read metadata file. Fa +lling back to other methods to determine prerequisites. Finished...

Updated:

Ok, maybe you need to install this zlib?...