首页 > Web开发 > 详细

在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function imagettftext())

时间:2020-06-06 14:21:45      阅读:34      评论:0      收藏:0      [点我收藏+]

在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function   imagettftext())

install gd with free-type 有free-type才能支持php的imagettftext()图片处理函数

cd /root/php7/php-7.2.31/ext/gd #进入安装源文件的gd扩展文件
./configure --with-php-config=/usr/local/php746/bin/php-config   --with-freetype-dir=/usr/include/freetype2  #注意要写对该已经安装的freetype地址,本地址是centos6.5地址,可以用yum install freetype安装
make
make test 查看make是否有错误 经测试有时候虽然有报错,看看错误内容,如果影响不大,继续执行make install也是可以执行成功的,只是报错中涉及到的部分内容可能无法支持
make install

在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function imagettftext())

原文:https://www.cnblogs.com/qiangshangkeji/p/13054252.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!