生成验证码时出现Fatal error: Call to undefined function imagettftext()
来源:互联网 发布:linux命令vi怎么退出 编辑:程序博客网 时间:2024/06/05 07:58
今天下载了一个开源的cms,本来想从里面找点东西,没想到后台验证码一直刷不出来,查之,发现
Fatal error: Call to undefined function imagettftext()
但是我的gd库是装了的啊。于是在网上找了一下解决方案,发现是说编译gd库之前没有安装freetype库,于是安装了一下
yum install libXpm* freetype* libjpeg* libpng*
然后重新编译php
./configure --prefix=/usr/local/php --with-gd --with-zlib --enable-exif --with-png-dir --with-jpeg-dir=/usr/local/jpeg6 --with-freetype-dir=/usr/local/lib --enable-gd-jis-convmakemake install
但是仍然不行
JPEG SupportenabledlibJPEG Version6bPNG Supportenabledphpinfo中这些都有,FreeType 仍然没有,于是又找了一下,发现freetype的路径不对,
然后修改了一下路径
./configure --prefix=/usr/local/php --with-gd --with-zlib --enable-exif --with-png-dir --with-jpeg-dir=/usr/local/jpeg6 --with-freetype-dir=/usr/include/freetype2' --enable-gd-jis-convmakemake install
重启fpm,验证码刷出来了。
ps,我是64位操作系统,php版本是5.3.28。
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()
- Fatal error: Call to undefined function imagettftext()
- thinkphp验证码显示不出来 Fatal error: Call to undefined function imagettftext() 生成验证码错误
- thinkPHP 运行出现Fatal error: Call to undefined function Think\imagettftext()...问题
- linux重新编译安装gd,增加freetype支持,解决验证码不显示问题,Fatal error: Call to undefined function imagettftext()
- 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()
- 百度研发鄙视题
- LeetCode :: Sum Root to Leaf Numbers [tree、dfs]
- 使用对象数组和指针
- 项目开发中是突出的重点重要呢,还是细节重点重要.
- XML详解---1
- 生成验证码时出现Fatal error: Call to undefined function imagettftext()
- 【leetcode】Evaluate Reverse Polish Notation
- 设置Activity进入退出动画
- MySQL基本命令
- VC++ 鼠标事件、键盘事件模拟
- xml 解析
- 利用JavaScript通过单选框radio控制div的显示和隐藏
- 做这个花了两个晚上,感觉不太熟悉,也不太懂 = =
- 使用pthread模拟一个简单线程池