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:
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