Fatal error:call to undefined function imagettftext () workaround

Source: Internet
Author: User
Tags php compiler

Fatal error:call to undefined function imagettftext () workaround my problem is that the PHP compiler installed when the specified GD directory, in fact, do not specify. You can do it. Blog Category:
    • Php
freestylephpcmsconfigureProblem Description: Phpcms cannot see the captcha picture after installation.
Resolution: Ensure PHP-GD and freestyle. and Ensure that freestyle is installed first, then PHP-GD, and if PHP-GD is installed first, after the freestyle is installed,Need make clean and then re-configure PHP with freestyle option, my following:
./configure \
--with-mysql \
--WITH-APXS2=/APP/DEPLOY/APACHE/BIN/APXS \
--WITH-GD \
--ENABLE-EXIF \
--ENABLE-GD-NATIVE-TTF \
--enable-inline-optimization \
--with-zlib \
--with-png-dir \
--WITH-JPEG-DIR=/USR/LOCAL/JPEG6 \
--with-freetype-dir=/usr/local/lib \
--WITH-TTF \
--enable-mbstring \
--with-gettext \
--enable-gd-jis-conv
In addition, PHP-GD can be installed via the Yum install PHP-GD.
Finally, the GD information through Phpinfo () should read as follows:
GD Support Enabled
GD Version bundled (2.0.34 compatible)
FreeType Support Enabled
FreeType Linkage with FreeType
FreeType Version 2.4.5
GIF Read Support Enabled
GIF Create Support Enabled
JPG Support Enabled
PNG Support Enabled
WBMP Support Enabled
XBM Support Enabled
jis-mapped Japanese Font Support enabled

Fatal error:call to undefined function imagettftext () workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: [email protected] and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.