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

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/ or /lib/ On Gentoo, that's the libpng ebuild with a URL of 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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003749]
[Eily]: maybe you could crash the python compiler instead
[LanX]: Larry the greatest
[LanX]: hmm this joke may be too old for millennials
[LanX]: s/joke/reference/
[Eily]: well, I didn't get the joke and I didn't get the image either because the proxy won't let me

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (15)
As of 2017-03-23 17:39 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (292 votes). Check out past polls.