Technology Insights

Compile Litespeed PHP To Include GD FreeType Support, GD FreeType Linkage, and GD JPG Support

I was recently installing KBPublisher on a web server running Litespeed web server with both PHP and Ruby running on it. The initial check for KB Publisher complained about GD FreeType Support, GD FreeType Linkage, and GD JPG Support not being compiled into PHP. Its fairly easy to resolve this but may not be obvious to all so use the tips and directions below.

Installed Packages:

Technology Insights

Linux Commands to Install ImageMagick and RMagick

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

cd /usr/local/src

wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz

tar xvzf freetype-2.3.5.tar.gz

./configure

make

make install