Archive

Posts Tagged ‘freetype functions’

How To Install Freetype Support for Your PHP Installation

April 20th, 2008 2 comments

Today we’ll add for your PHP installation. You might need it if you work with GD library and if you want to add text on pictures. Let’s do it together. Starting PuTTY…

Let’s install Freetype devel first. You can do that by issuing the following command: yum install freetype-devel.

Now we need to configure PHP. Let’s go: cd /usr/local/directadmin/customapache/php-4.4.8;

Let’s take a look at what we have in PHP configuration:

Now I will save current configuration and will append freetype to my configure string. For me it’s the following string:
./configure --with-apxs --with-curl --with-curl-dir=/usr/local/lib --with-gd --with-gd-dir=/usr/local --with-gettext --with-jpeg-dir=/usr/local/lib --with-kerberos --with-mcrypt --with-mhash --with-mysql=/usr --with-pear --with-png-dir=/usr/local/lib --with-xml --with-zlib --with-zlib-dir=/usr/local/lib --with-zip --with-openssl --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-mbstring --enable-memory-limit --with-iconv --enable-dba --with-db4 --with-freetype-dir=/usr/include/freetype2/ --with-freetype

Press Return (or Enter). Then, let’s run make clean, make, make install and service httpd restart . Let’s take a look at what we’ve got:

And especially GD section:

Now you’re welcome to use in PHP. Another easy installation, isn’t it?