在已经编译安装好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

最新文章

  1. 3D几何变换
  2. localStorage、sessionStorage在无痕模式下被禁用
  3. disconf安装部署
  4. C语言采用文本方式和二进制方式打开文件的区别分析
  5. 云计算之KVM简介(一)
  6. sql查看数据字典(表结构)
  7. atitit.GMT UTC Catitit.GMT UTC CST DST CET 星期 月份 节日 时间的不同本质and起源
  8. JS图片切换效果
  9. BZOJ 1600
  10. CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
  11. VBA Excel 打印
  12. CentOS挂载新硬盘
  13. 2)Javascript设计模式:Singleton模式
  14. sharepoint 创建个人网站
  15. javascript函数之arguments
  16. SpringMvc返回报文形式的控制-验证方法: JSON or HTML or XML
  17. 伯努利数学习笔记&&Luogu P3711 仓鼠的数学题
  18. linux添加zabbix service并开机自动启动
  19. postgresql copy的使用方式
  20. excel的宏与VBA入门(一)——基础概念

热门文章

  1. jbpm4 candidate理解
  2. 2018-06-25 js表单事件、三个高度和Ajax异步通讯技术
  3. goland pojie
  4. React实践debug:JSX输出的限制(存疑)
  5. React面试题汇总
  6. Jquery动画,排队与并发
  7. Java并发(4)
  8. [256个管理学理论]001.蝴蝶效应(Butterfly Effect)
  9. 机器学习pdf资源
  10. centos系统与ubuntu系统的区别