`
chembo
  • 浏览: 921902 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Fatal error: Call to undefined function imagettftext()解决办法

    博客分类:
  • php
阅读更多
问题描述:phpcms 安装后,不能看到验证码图片。
解决:确保php-gd和freestyle.而且确保是先安装了freestyle,然后是php-gd;如果是先安装了php-gd,那么在安装完freestyle后,需要make clean 然后重新configure php with freestyle option,我的如下:
./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
另外,php-gd可以通过yum  install php-gd安装。
最后通过phpinfo()看到的gd信息应该如下:
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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics