Problems compiling PHP: png.h not found

I’m just trying to install my LAMP Server. Everything went well so far. The last step is getting PHP installed.

now this is how I want it to be configured:


now, my first Problem was, that the “” was missing - I found the on my System and made a ls - n to it with “”.
Now the same problem accured with libpng - no problem again a link…

But now it says

“configure: error: png.h not found.”

what ist png.h - couldn’t locate this on my System (except in /users/floezen/PDFlib-Lite-5.0.2-Unix-src/libs/png/png.h which is the source for the PDFlib installation).
Now - where should png.h be and how can I install this?

Hope someone can help me :smiley:


This is a RedHat 9 Linux distribution.

You need libpng-devel-1.2.2-8.i386.rpm installed on RH9. It’s on disc 1.

I have the same problem on my Cobalt RAQ4 server. I installed libpng 1.2.5 again but it still isn’t working :frowning:

You need to install the development package (libpng-devel-something)