Fatal error: Call to undefined function imagettftext()
来源:互联网 发布:e4a数据库 编辑:程序博客网 时间:2024/05/17 22:39
1 >CentOS6.5上 编译安装完成php运行php文件时产生下面的问题:
Fatal error: Call to undefined function imagettftext()
解决方案:
1> 首先查看phpinfo(),查找是否安装了gd扩展。如何没有重新编译安装。
2> 如何安装了gd扩展。查看是否为其添加了freetype,类似下面的项。
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.5
如果没有,请重新编译安装。
3> 如果编译安装后仍然没有解决问题先下载安装freetype。然后再编译安装php,可以参考以下配置。
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-mysql-sock=/var/lib/mysql/mysql.sock --with-gd --enable-gd-native-ttf --with-jpeg-dir --with-png-dir --with-freetype-dir=/usr/local/freetype/ --enable-shared --enable-static --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-pear --with-gettext --enable-session --with-curl --with-apxs2=/usr/local/apache2/bin/apxs
注意修改相关路径。
4> 注意事项
编译php过程中,如果出现
configure: error: Cannot find libmysqlclient under /usr 类型信息。
1)请检查你配置php时的mysql路径(--with-mysql=xxxx)。
2) 如果你使用的是64位系统,可能需要执行以下操作
ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib/libmysqlclient.soln -s /usr/lib64/mysql/libmysqlclient_r.so /usr/lib/libmysqlclient_r.so
0 0
- Fatal error: Call to undefined function imagettftext()
- Fatal error: Call to undefined function imagettftext()
- 生成验证码时出现Fatal error: Call to undefined function imagettftext(),如何处理?
- 生成验证码时出现Fatal error: Call to undefined function imagettftext()
- thinkPHP 运行出现Fatal error: Call to undefined function Think\imagettftext()...问题
- 解决 Fatal error: Call to undefined function imagettftext() 生成验证码错误
- Call to undefined function imagettftext()
- thinkphp验证码显示不出来 Fatal error: Call to undefined function imagettftext() 生成验证码错误
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function curl_init()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function
- Fatal error: Call to undefined function randstr()
- Fatal error: Call to undefined function openssl_pkey_get_private()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function mcrypt_get_block_size()
- Fatal error: Call to undefined function cal_days_in_month()
- Fatal error: Call to undefined function file_iterator_autoload()
- Rod cutting problem DP
- 人体99个秘密清单
- 配置hadoop-1.2.1 eclipse开发环境
- 外部表初始学习
- 格雷的疑惑
- Fatal error: Call to undefined function imagettftext()
- WWDC 2012 Session笔记——200 What is new in Cocoa Touch
- Undo Internal<2>
- poj 1611 The Suspects
- WiFi信号强度--SIGNAL_POLL
- Eclipse配置Maven插件
- HDOJ 2553 皇后问题(1、回溯法 2、位运算)
- Hadoop MapReduce编程入门案例
- IOS学习笔记-3