gd库安装出错

gd_png.c:16:53: error: png.h: No such file or directory

解决方案:

打开gd_png.c 查看,由于当前目录根本没有png.h 所以安装报错

#include "gdhelpers.h"
#include "png.h" 

所以将 png.h的正确目录改为 /usr/local/libpng/include/png.h 即可正确安装

 

posted @ 2017-03-10 10:17  &MJane&  阅读(116)  评论(0)    收藏  举报