Compile FreeType to GD php Print

  • 10

Compile FreeType to GD php

cd /usr/local/directadmin/customapache/
wget http://savannah.nongnu.org/download/freetype/freetype-2.1.10.tar.gz
tar zxf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure
make
make install

My Freetype libs are located in /usr/local/lib, check your system and see where it is (ex: /usr/lib).


Open the 'build' file in the DA scripts directory and search for doGD

In the configure line, change
--without-freetype
to
--with-freetype=/usr/local/lib

Open up 'configure.php' in the DA scripts directory and add
--with-freetype \
--with-freetype-dir=/usr/local/lib \

Make sure to include the trailing \. Note my directory where my Freetype libs are, change yours accordingly if needed.

 

./build clean
./build php

Answer 'y' when asked if you want to compile GD again.

Then restart HTTPD. Open up a phpinfo file and you'll see Freetype support listed now.


Was this answer helpful?

« Back