在wordpress上安装插件NextGEN Gallery 用于支持相册,在上传图片后出现错误
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

posted on 2008-02-11 19:40  锐马软件工作室  阅读(1167)  评论(0编辑  收藏  举报