Easy way to add freetype support on PHP, on a DirectAdmin hosting environment with Fedora as the OS, is to use the rpm versions of freetype and freetype-devel.
-
If not installed already:
# yum install freetype freetype-develEdit "/usr/local/directadmin/custom
--with-freetype \
&nbs p; --with-freetype-dir=/usr/lib \
&nbs p; --enable-gd-native-ttf \Note: /usr/lib is the path to the libttf.so .
# rpm -ql freetype-devel | grep libttf.soThen run the build:
# ./build clean
# ./build php nIf you need to build and update existing packages:
# ./build clean
# ./build update
# ./build allCheck with phpinfo to confirm.
- sandip's blog
- Login or register to post comments
Comments
Install exif:
# yum install libexif libexif-develEdit configure.php with:
--enable-exif \Re-compile php with exif enabled.
# ./build clean# ./buid php n
Check with phpinfo.