[root@localhost gd]# /usr/local/php/bin/phpize
[root@localhost gd]# ./configure --with-php-config=/usr/local/php/bin/php-config --enable-gd-native-ttf --with-jpeg-dir --with-tff --with-freetype-dir
[root@localhost gd]# make && make install