To do that, you must compile gd with freetype support.
Do this :
Code:cd /usr/local/directadmin/customapache/ wget [url]http://ovh.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz[/url] tar zxf freetype-2.1.9.tar.gz cd freetype-2.1.9 ./configure make make install
Freetype 2.x is now installed on /usr/local/lib directory
Now, modify the build script (./build) for compile GD with FreeType :
In function doGD replace
byCode:./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype
Code:./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local
Now, build PHP WITH compile of GD (type Y at prompted)
and after doCode:./build php
Code:service httpd restart
That's all. [/B]
RosT said:What to do?
Go and download the newest, stable version of FreeType2:
http://freetype.sourceforge.net/
While logged in as root on the server, with a copy of the archive for
FT2, gunzip/untar it and change to the directory and type:
./configure --prefix-/usr
make
make install
After that's complete, while compiling PHP w/ the options, add the
following to the configure line, along with your other options:
--with-freetype-dir=/usr