安裝gd
塔爾zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
CPP flags = "-I/usr/local/freetype 2/include-I/usr/local/JPEG 8/include-I/usr/local/libpng 2/include-I/usr/local/fontconfig/include "。/configure-prefix =/usr/local/gd2/-with-zlib =/usr/local/zlib/-with-png =/usr/local/libpng 2/-with-JPEG =/usr/local/JPEG 8/-with-freetype =/usr/local/freetype 2/-with-font config =/usr/include/font config
如果安裝系統中默認安裝了fontconfig,請將其更改為:
CPP flags = "-I/usr/local/freetype 2/include-I/usr/local/JPEG 8/include-I/usr/local/libpng 2/include-I/usr/local/fontconfig/include "。/configure-prefix =/usr/local/gd2/-with-zlib =/usr/local/zlib/-with-png =/usr/local/libpng 2/-with-JPEG =/usr/local/JPEG 8/-with-freetype =/usr/local/freetype 2/-with-font config = shared
確保gd中的所有東西都安裝好了