I believe your PHP interpreter needs to be compiled with support for the FreeType library.
Check whether phpinfo lists the following entries under GD:
FreeType Support enabled
FreeType Linkage with freetype
These can be enabled in the php.ini file:
'--with-freetype-dir=/usr/local/lib'
'--with-gd'
'--enable-gd-native-tt'