Problems installing gd-2.0.34 on Red Hat

[email protected] ("michael watson \(IAH-C\)")
Newsgroups php.gd.devel
Message-ID <8975119BCD0AC5419D61A9CF1A923E9504B0E373@iahce2ksrv1.iah.bbsrc.ac.uk>
Hi

My problems started when I tried to install the perl GD module (version
GD-2.35), which requires libgd 2.0.28.

So I try to install gd-2.0.34.  I run the configure with both --with-png
and --with-jpeg and get:

   Support for PNG library:          no
   Support for JPEG library:         no
   Support for Freetype 2.x library: no
   Support for Fontconfig library:   no
   Support for Xpm library:          no
   Support for pthreads:             yes

So, I looked at the config output and saw:

checking for deflate in -lz... yes
checking for libpng12-config... no
checking for libpng-config... no
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... No

Hmmm, it looks like I don't have libpng.  BUT...

%> rpm -q -a | grep png
libpng-1.2.2-25
libpng10-1.0.13-15

It looks like I do.... This seems to confirm it:

%> ls /usr/lib/libpng*
/usr/lib/libpng12.so.0        /usr/lib/libpng.so.2
/usr/lib/libpng.so.3
/usr/lib/libpng12.so.0.1.2.2  /usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.3.1.2.2

So looking at the config output, I find that png.h seems to be a major
worry.  I wonder where it is on my SuSe system that has libpng, libgd
and GD installed.  I find that my SuSe system has:

%> find /usr/include -name png.h
/usr/include/png.h
/usr/include/libpng12/png.h

Great, so my SuSe system has png.h and my Red Hat system doesn't.  Whats
the difference?

%redhat> rpm -q -a | grep png
libpng-1.2.2-25
libpng10-1.0.13-15

%suse> rpm -q -a | grep png
libpng-1.2.5-25
libpng-devel-1.2.5-25

So both have libpng installed, but Red Hat doesn't have png.h yet SuSe
does.  The major difference seems to be that SuSe has libpng-devel
installed.

So I looked for an rpm for libpng-devel for Red Hat and I couldn't find
one - none on rpmfind.net, or rpmseek.com....

I realise this is a GD help list, but I bet you all have libpng
installed too, and I bet some of you use Red Hat... So can anyone help
me figure out why my libgd installation is failing on Red Hat, and where
I can get png.h from?  Do I need to install libpng-devel?  If so, where
can I get it for Red Hat?

Many, many thanks

Mick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.