I've recently replaced our aging (386) monitoring machine with something a bit more recent and because I had driver issues with CentOS I decided to use Debian 6 (Squeeze) instead. While in the past I've preferred to compile from source this time I thought I'd try to stick with apt and install packages that way.
I suppose it was inevitable that there are issues. Of main concern is that there appears to be no image support in GD with error messages such as this whenever I try to create an image in code (PHP or Perl):
Can't locate object method "png" via package "GD::Image"
I can replace "png" with "jpg" or "gif", all result in the same error.
I can't locate any packages which look like they might add the needed graphic support. How can I resolve this without creating a dependency hell for myself?
EDIT
Based on the various comments below I've come to the conclusion that something is screwed with at least part of my GD installation, so the question now becomes: How can I uninstall the various parts and reinstall them without causing myself any more problems than I already have? Sadly, I'm not in a position to wipe this machine and start over.
Now I remember why I've previously stayed away from these package managers and the dependency nightmares they create. :(
apt-get install libgd-gd2-perlon my Squeeze box allowed me to use this example source to create a .PNG with Perl. Not sure about PHP. – jscott Dec 23 '11 at 1:03libgd-gd2-perlinstalled and rechecked with your sample code (very similar to what I was already trying) and still get the same error. – John Gardeniers Dec 23 '11 at 2:10php5-gd, rebooting (just to be sure) and reinstalling it (and restarting Apache). Testing this time with jscott's sample code. Still no go. – John Gardeniers Dec 23 '11 at 2:13php5-gdinstalled. Withoutlibgd-gd2-perl, I getCan't locate GD.pm in @INCtrying to use the sample. – jscott Dec 23 '11 at 2:59