How to install FreeType support for GD on Debian

I have installed GD using the command apt-get install php5-gd and this was successful but the website I am using is complaining about not having FreeType libraries installed.

How do I get this working?



You would install freetype in a similar manner to how you installed php5-gd… you would just do “apt-get install PACKAGE_NAME”.

The exact name of the package depends on the distribution you’re using. On Ubuntu 12.04, you might wish to install libfreetype6 and libfreetype6-dev. You could do that with this command:

apt-get install libfreetype6 libfreetype6-dev