欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

linux下yum为php安装gd库

程序员文章站 2022-05-19 10:01:35
...
  1. [root@jbxue ~]# yum install php-gd*
  2. Setting up Install Process
  3. Setting up repositories
  4. base 100% |=========================| 951 B 00:00
  5. update 100% |=========================| 951 B 00:00
  6. ================================================
  7. GD Support enabled
  8. GD Version bundled (2.0.28 compatible)
  9. FreeType Support enabled
  10. FreeType Linkage with freetype
  11. FreeType Version 2.2.1
  12. GIF Read Support enabled
  13. GIF Create Support enabled
  14. JPG Support enabled
  15. PNG Support enabled
  16. WBMP Support enabled
  17. XBM Support enabled
复制代码

很简单的,包括 freetype,jpeg,png等扩展库一并安装,比编译安装省事多了。