在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

相关文章:

  • 2022-12-23
  • 2021-10-19
  • 2022-03-09
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-02-17
  • 2022-03-05
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-05-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案