Today we’ll add Freetype support 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 freetype functions in PHP. Another easy installation, isn’t it?
Perfect – Worked like a charm, thx!
Pingback: Sayang… » Blog Archive » Free Help Desk Software: Trellis Desk 1.0
Indeed. Assuming you’re stuck working with a given install of PHP, how do you locate the install directory to perform ./configure? I’m using the build below and can’t find the make files.
http://developer.amazonwebservices.com/connect/entry!default.jspa?categoryID=223&externalID=1992