在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function imagettftext())
2024-08-24 20:37:08
在已经编译安装好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
最新文章
- 3D几何变换
- localStorage、sessionStorage在无痕模式下被禁用
- disconf安装部署
- C语言采用文本方式和二进制方式打开文件的区别分析
- 云计算之KVM简介(一)
- sql查看数据字典(表结构)
- atitit.GMT UTC Catitit.GMT UTC CST DST CET 星期 月份 节日 时间的不同本质and起源
- JS图片切换效果
- BZOJ 1600
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- VBA Excel 打印
- CentOS挂载新硬盘
- 2)Javascript设计模式:Singleton模式
- sharepoint 创建个人网站
- javascript函数之arguments
- SpringMvc返回报文形式的控制-验证方法: JSON or HTML or XML
- 伯努利数学习笔记&;&;Luogu P3711 仓鼠的数学题
- linux添加zabbix service并开机自动启动
- postgresql copy的使用方式
- excel的宏与VBA入门(一)——基础概念