在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
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号