Home > Backend Development > PHP Tutorial > php支持GD library

php支持GD library

WBOY
Release: 2016-06-23 14:33:13
Original
1877 people have browsed it

在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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template