gd 添加freetype支持 。Call to undefined function Think\imagettftext() 错误解决
来源:互联网 发布:明星二手淘宝店铺 编辑:程序博客网 时间:2024/05/21 21:34
今天在调试一个项目的验证码的时候,返回Call to undefined function Think\imagettftext() 错误位置 这个错误。
网上的资料都说要重新安装php ,编译时添加 --with-freetype-dir=/usr/local/freetype --enable-gd-native-ttf 这些参数。
我试了一下,重新安装php,结果还是不行,gd还是没有支持freetype。
然后,我在添加gd扩展时,添加--with-freetype-dir=/usr/local/freetype --enable-gd-native-ttf 这些参数。
重新make ,makeinstall gd 的so文件。
此时问题解决。在phpinfo页面看到gd支持freetype
阅读全文
0 0
- gd 添加freetype支持 。Call to undefined function Think\imagettftext() 错误解决
- linux重新编译安装gd,增加freetype支持,解决验证码不显示问题,Fatal error: Call to undefined function imagettftext()
- mac THINKPHP Call to undefined function Think\imagettftext()
- thinkphp 报错:Call to undefined function think\captcha\imagettftext()
- 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()...问题
- 关于MAC下php出现:Call to undefined function Think\imagettftext()的解决办法
- MAC下php出现:Call to undefined function Think\imagettftext()的解决办法
- 关于MAC下php出现:Call to undefined function Think\imagettftext()的解决办法
- ThinkPHP Call to undefined function Think\imagecreate解决
- 从根本解决“Call to undefined function Think\imagecreate()”
- call to undefined function mysql_connect()错误解决
- Call to undefined function mysqli_connect()错误解决
- Call to undefined function Think\mb_strlen()
- 解决Call to undefined function
- 打印unity界面并保存
- 保证分布式系统数据一致性的6种方案(转载)
- 刷题之统计兔子的个数
- 电脑换系统怎么备份?
- linux初学者-网络管理篇
- gd 添加freetype支持 。Call to undefined function Think\imagettftext() 错误解决
- C
- 2 3 5 7的倍数
- jersey上传文件例子
- js操作cookie,实现登录密码保存
- Sort Colors问题及解法
- JavaScript的六种继承方式
- MySQL中int(11)最大长度是多少?
- yii2,简单的留言板前段到后台