#问题1
configure: error: freetype-config not found.
yum install freetype-devel
apt-get install libfreetype6-dev
cd php源码包/ext/gd
phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-png-dir --with-freetype-dir --with-jpeg-dir --with-gd
make -j4
sudo make install
vim php.ini
extension=gd
网友评论