Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

So I wanted to munge an image file to make it clear a site was an internal test site and not the main customer facing site. Imager looked to be just the ticket, and indeed it is very nice to use except that on Windows (where I was testing the script) I could only work with a .bmp version of the image - not the .png image I really wanted to work with. Never mind I thought, on the Linux machine where the script will finally run I'll be able to install Imager::File::PNG and all will be well.

Well, it's not! I get the same failure I did when I used cpan to try to install Imager::File::PNG on Windows. The Linux box is running 64 bit Debian Squeeze. Imager installed fine using apt-get on Debian and ppm on Windows. The relevant (I hope) part of the cpan output is:

Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.po +d TONYC/Imager-0.93.tar.gz /usr/bin/make install -- OK Running make for T/TO/TONYC/Imager-File-PNG-0.86.tar.gz CPAN.pm: Going to build T/TO/TONYC/Imager-File-PNG-0.86.tar.gz PNG: building independently PNG: Not found via pkg-config PNG: Generic: 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.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 Note (probably harmless): No library found for -lpng PNG: Test code failed: Can't link/include 'png.h', 'stdio.h', 'png' OS unsupported: PNG libraries or headers not found

Looks like there is a missing PNG library, but I can't tell what it is. Can anyone offer some help?

True laziness is hard work

In reply to Failure trying to build Imager::File::PNG by GrandFather

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found