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
./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype
./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local
./build php
service httpd restart
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-pear \
--with-pcre \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
tribal-dolphin said: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]
mvveelen said:Got stuck here. Everything went fine, and I edited the configure.php file