mac THINKPHP Call to undefined function Think\imagettftext()
来源:互联网 发布:网络离婚证在线制作 编辑:程序博客网 时间:2024/05/16 05:00
转:http://blog.csdn.net/ayonel613/article/details/51136070
今天从网上下了一用thinkphp写的后台管理系统,安装好之后要登录发现验证码挂了,开启了thinkphp的调试模式,定位出错误是:
Call to undefined function Think\imagettftext()
错误位置
FILE: /Users/dimera/Sites/tpadmin/Libs/ThinkPHP/Library/Think/Verify.class.PHP LINE: 143
这个imagettftext()方法是在php的gd扩展中,因此先去php.ini 开启了gd扩展
用phpinfo探针定位到gd扩展:
有了gd扩展还什么还是报错呢,原因是因为在gd扩展中还应该有个freeType,因此我们需要安装freeType,但是即使安装了freeType,还得重新编译php,考虑到有可能带来其他问题,发现stackoverflow的大神已经自己写好了一个sh来帮我们,一键搞定这个问题:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
PS: 这个可能需要很长时间,要有耐心呦(亲测)
我的是5.5,你们可以选择自己的php版本
原答案:http://stackoverflow.com/questions/26443242/after-upgrade-php-no-longer-supports-png-operations
PS:当遇到谷歌也解决不了的问题,一定是程序员错了,哈哈
0 0
- mac THINKPHP Call to undefined function Think\imagettftext()
- thinkphp 报错:Call to undefined function think\captcha\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()的解决办法
- Call to undefined function imagettftext()
- Fatal error: Call to undefined function imagettftext()
- Fatal error: Call to undefined function imagettftext()
- gd 添加freetype支持 。Call to undefined function Think\imagettftext() 错误解决
- ThinkPHP Call to undefined function Think\imagecreate解决
- thinkphp验证码显示不出来 Fatal error: Call to undefined function imagettftext() 生成验证码错误
- Call to undefined function Think\mb_strlen()
- thinkphp Call to undefined function token_get_all
- thinkphp open,Call to undefined function imagecreatefromjpeg()
- 从根本解决“Call to undefined function Think\imagecreate()”
- 生成验证码时出现Fatal error: Call to undefined function imagettftext(),如何处理?
- 生成验证码时出现Fatal error: Call to undefined function imagettftext()
- 举例说明----索引的创建,删除,查看,分类
- ZOJ 1027
- 各大推荐引擎 整理
- $.data()的作用和理解
- bugs管理
- mac THINKPHP Call to undefined function Think\imagettftext()
- 传智播客“你有jià,我无价”活动火热开启!
- Tkinter教程之Pack篇
- resetful架构
- 尺度不变特征变换匹配算法详解
- 改变键盘录入数据的分隔符
- C++getint()读入优化
- voronoi图的和Delaunay三角剖分
- HashMap和HashSet的区别