Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Failure trying to build Imager::File::PNG

by Tanktalus (Canon)
on Nov 14, 2012 at 04:43 UTC ( #1003749=note: print w/ replies, xml ) Need Help??


in reply to Failure trying to build Imager::File::PNG

"-lpng" always means "libpng.%ext" on unix/linux where %ext depends on the platform. However, on Linux, as far as I can tell, that's always .so, so look for a package that provides /usr/lib/libpng.so or /lib/libpng.so. On Gentoo, that's the libpng ebuild with a URL of http://www.libpng.org. Hope that helps.

Also your test code failed with an inability to include "png.h" so there's another file to look for from your libpng package - /usr/include/png.h.

Good luck - it built fine here :-)


Comment on Re: Failure trying to build Imager::File::PNG
Re^2: Failure trying to build Imager::File::PNG
by GrandFather (Sage) on Nov 14, 2012 at 04:54 UTC

    Thanks! That was the hint I needed.

    apt-get install libpng12-dev

    did the magic for me. Mind you, it took three tries before I found the right package!

    True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003749]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2015-07-06 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls