This is the second of three or four issues I ran into while building PHP via the Litespeed Admin Console. Each of the errors was caused by missing packages on a new development server I was bringing online. Below I describe the error in more detail, the cause of the error, and how the error can be corrected.
This is what I had to do to get it to work on CentOS 5. For some reason, FreeType would not work with yum so I built it from scratch. I’m not sure if the all the “yum install”s were needed, but I did it anyway.
#yum install freetype — did not work
tar xvzf freetype-2.3.5.tar.gz