you do not have the gd library installed. this class requires the gd library to function properly. visit http://us2.php.net/manual/en/ref.image.php for more information
根据网上检索,了解到php需要支持gb库用于图象生成,
所以对php重新进行编译,在configure里加上?with-gd,报错
configure: error: libpng.(a|so) not found
使用?with-png-dir=/usr/lib,依然出错。
使用yum install pnglib后,然后重新编译php,还是出错。
最后尝试使用yum install pnglib-devel,然后重新编译php,正常
原来php使用的是pnglib-devel而不是pnglib
