#安装freetype
./configure --prefix=/usr/local/modules/freetype
make
make install
#安装jpeg
./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static
make
make install
#安装GD
./configure --prefix=/usr/local/modules/gd --with-jpeg=/usr/local/modules/jpeg6 --with-png --with-zlib --with-freetype=/usr/local/modules/freetype
make
make install