本节内容:
yum方式安装php gd库。
安装命令:
复制代码 代码示例:
[root@jbxue ~]# yum install php-gd*
Setting up Install Process
Setting up repositories
base 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
================================================
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
很简单的,包括 freetype,jpeg,png等扩展库一并安装,比编译安装省事多了。