Author's blog address: https://www.cnblogs.com/liu-shuai/
Installing the GD dependent Library
FreeType
1 wget http: // download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz 2 3 tar JXVF Freetype-2.4 . 0 . tar .gz 4 5 CD freetype- 2.4 . 0 6 7 ./configure--prefix=/usr/local/ FreeType
8
9 make && make Span style= "COLOR: #0000ff" >install
jpegsrc
1 wget " http://www.ijg.org/files/jpegsrc.v9.tar.gz " 2 3 tar zxvf jpegsrc.v9. tar .gz 4 5 cd jpeg- 9 6 7 ./configure--prefix=/usr/ Local/jpeg 8 9 make && make install
Libpng
1 wgethttp//jaist.dl.sourceforge.net/project/libpng/libpng12/1.2.56/libpng-1.2.56.tar.gz2 3 TarZXVF libpng-1.2. About.Tar. GZ4 5CD libpng-1.2. About6 7./configure--prefix=/usr/local/libpng8 9 Make&& Make Install
Installing the GD Library
1 cd/path/php-5.6 . 25 2 3 CD Ext/gd 4 5 /usr/ Local/php/bin/phpize 6 7 ./configure--with-php-config=/usr/local/php/bin/php-config--with-jpeg-dir =/usr/local/jpeg--with-png-dir =/usr/local/libpng-- With-freetype-dir =/usr/local/freetype Span style= "COLOR: #008080" >8 9 make && make install
PHP Compiler installation GD Library